02-14-2008
can i increase the size of the history file. only 10 latest commands are being stored. If everybody has there own history file then how come i am able to see what others are typing?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
Could you tell me if it is possible to add pseudo terminal name to the bash history?
I need to see from which terminal the command was issues. I found a variable HISTTIMEFORMAT that helps me to identify the time but cannot find similar thing for the pts number.
thanks,
Pavel. (0 Replies)
Discussion started by: pn8830
0 Replies
2. Shell Programming and Scripting
Hi,
I would normally clear off the history entries from a terminal by using the following commands:
> ~/.bash_history
history -c
But this will remove the entries of that particular session only. How to prune all the entries of all login sessions for a particular user in a system?
N.B:... (3 Replies)
Discussion started by: royalibrahim
3 Replies
3. Shell Programming and Scripting
Hellooooooo ;)
Today I've created a script that does some things (not important).
And for fun I want that it kills the terminal from which I launch it. (too lazy to press Alt-F4 lol)
So I write
#!/bin/bash
kill $PPID
but it doesn't work ... while if in my xterm I launch another xterm... (8 Replies)
Discussion started by: xib.be
8 Replies
4. UNIX for Dummies Questions & Answers
Hello every body,
Kindly inform me How Do i find out the time I executed a command previously on UNIX Solaris??
To be more specific and more clear about what i want to know is that I want a command the enables me to know the history and which command i run at this history/time.
FYI I used... (5 Replies)
Discussion started by: ahmedamer12
5 Replies
5. Shell Programming and Scripting
Hi,
I am using putty client to connect to my remote Linux server box, and I am connecting through ssh. That system runs bash shell. So, if I use multiple putty terminal, how can I replicate those commands that I ran in other terminals to be available/shared in the current terminal window (i.e)... (1 Reply)
Discussion started by: royalibrahim
1 Replies
6. Shell Programming and Scripting
Hi,
I've a script which kills all process, but i need a script shell script(sh), where it'll kill process on that particular terminal. below is example
TY=`tty`
for P in $TY
do
`kill -9 $P 2>/dev/null`;
done
echo "test process killed"
break
... (3 Replies)
Discussion started by: asak
3 Replies
7. UNIX for Advanced & Expert Users
Hi all,
My need is :
1. To know who , when , which command used.
2. Local user should not delete this information.
I mean , with an example , i can say
i have a user user1
i need to give all the following permissions to user1, :
a. A specific directory other than his home... (3 Replies)
Discussion started by: linuxadmin
3 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
My need is :
1. To know who , when , which command used.
2. Local user should not delete this information.
I mean , with an example , i can say
i have a user user1
i need to give all the following permissions to user1, :
a. A specific directory other than his home... (1 Reply)
Discussion started by: sriky86
1 Replies
9. Shell Programming and Scripting
Good afternoon
I need to KILL a process in a single command sentence, for example:
kill -9 `ps -aef | grep 'CAL255.4ge' | grep -v grep | awk '{print $2}'`
That sentence Kills the process ID corresponding to the program CAL255.4ge.
However it is possible that the same program... (6 Replies)
Discussion started by: enriquegm82
6 Replies
10. Shell Programming and Scripting
Hello elite shell/bash specialists,
I have done plenty of STFW and some RTFM, but I cannot find a clear solution to my challenge
Goal:
My goal is to have a script(of any language, preferably shell/bash/anything that can run things on unix), which will kill specific unix terminal windows for... (0 Replies)
Discussion started by: kamil-mech
0 Replies
ttty(7) Miscellaneous Information Manual ttty(7)
NAME
ttty - Thai terminal driver
SYNOPSIS
#include <sys/aioctl.h>
DESCRIPTION
This section describes special features supported by the Thai terminal driver, which is used for conversational computing in a Thai envi-
ronment. See tty(7) for a general description of terminal interfaces. See stty(1) for information on how to activate the features dis-
cussed here.
The Thai terminal driver is available only when Tru64 UNIX optional subsets for worldwide support are installed. This driver also must be
configured into the current running kernel in order for Thai support features to be enabled.
Line Disciplines
Line discipline switching to the Thai terminal driver is accomplished with the following TIOCSETD ioctl:
int ldisc = THAIDISC;
ioctl(f, TIOCSETD, &ldisc);
Input Sequence Checking
The Thai terminal driver supports input sequence checking that complies with the Wototo standard. The three different modes of input
sequence checking are as follows: Mode 0 (pass-through)
No input checking is performed. This mode allows the application program to handle checking of the input sequence. Mode 1 (basic
check)
This is the default mode for a Thai system. Mode 2 (strict)
This mode imposes additional constraints in order to reject obviously illegal input sequences.
Input Reordering
Input reordering mode, if activated, will reorder the following two types of Thai sequences: L3L1L2 -> L3L2L1 L3L4L1 -> L3L1L4
In these sequences, L1, L2, L3, and L4 are level-1, level-2, level-3, and level-4 characters, respectively.
History Mode Line Editing
The history mode of the Thai terminal driver allows users to use Emacs-like control codes to edit previously entered command lines. Up to
32 lines can be stored and each line can have a maximum width of 127 characters. However, short command lines, those that are fewer than
three characters in length, are not stored in the history list.
Depending on the editing command used, the unit of editing may be a character, a cell, or a word. A cell is one physical display column on
the screen and may consist of one ASCII character or one to three Thai characters. In this context, a word is a string of characters
delimited by white spaces. The following editing commands are available in the history mode: Move to the beginning of the line. Delete
the cell under the cursor. Move to the end of the line. Recall the previous command in the history list. Recall the next command in the
history list. Move the cursor to the left by one cell. Move the cursor to the right by one cell. Delete the Thai character immediately
before the cursor. You can use the stty command to determine and set the character that erases a character. Delete the word before the
cursor. You can use the stty command to determine and set the character that erases a word.
Typing a normal character causes it to be inserted before the character under the cursor. The kill, interrupt, and suspend characters cause
the Thai terminal driver to break out of the history mode.
Input sequence checking and input reordering are not performed in history mode. The line-editing features support only single-line edit-
ing, not multiple-line editing. For instance, if the cursor is wrapped to the beginning of the next line, you cannot return the cursor to
the previous line by pressing the left arrow key.
RELATED INFORMATION
Commands: stty(1)
Functions: ioctl(2)
Files: tty(7)
Others: Thai(5), Wototo(5) delim off
ttty(7)