![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| history | mirusnet | Shell Programming and Scripting | 1 | 01-27-2008 09:02 AM |
| csh History | aladdin | UNIX for Dummies Questions & Answers | 8 | 01-25-2008 06:39 AM |
| History | JuniorJack | UNIX for Dummies Questions & Answers | 2 | 06-02-2005 04:37 AM |
| Any History | igorsch | Linux | 1 | 09-25-2004 12:45 PM |
| history | tselvanin | UNIX for Dummies Questions & Answers | 2 | 09-23-2003 03:40 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
||||
|
history in ksh
Sometimes out of necessity, we have more than one user logged into the same unix account. I like to repeat previous commands. Since the commands for all users logged into this account go into a common history, this can be a problem. if I'm not careful I can run a command I don't intend to run.
Yesterday I accidentally ran an "exit" command--annoying, but not serious. However, it hit me that if the other person used an "rm" command it could have been very serious. Does anyone know if there's a way to turn off the common history and only have commands in the history from that login session? Much appreciated, Vince |
|
|||||
|
I think Optimus_P meant HISTFILE rather than HISTSIZE. See the Korn Shell FAQ.
|
|
||||
|
Another approach is:
HISTFILE=$HOME/.histfile.$$ which create unique histfile for each login shell. In this case, problem is that user don't see his history from previous log-in and you have to delete this files during log-out process. If you use csh [and clones], put rm $HISTFILE in your .logout If you use sh [and clones], try something similar in your .profile trap 'rm $HISTFILE; exit' NULL |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|