The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: history in ksh
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 10-18-2001
vince_ascend vince_ascend is offline
Registered User
  
 

Join Date: Oct 2001
Posts: 2
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