« Home | NFS between Solaris & Linux » | How To Set Up Database Replication In MySQL » | My sysadmin toolbox » | Network Monitoring with Zabbix » | Preventing SSH Dictionary Attacks With DenyHosts » | How do I scan my Linux system for rootkits, worms,... » | Convert man pages to text » | Poor Mans Raid & Clone Script Tutorial » | Out-going admin cron jobs » | Who hits my website » 

Monday, April 03, 2006 

Separate Shell Command history

One other suggestion on how to separate shell command history files by terminal (It works on
HP-UX):

Change the permissions of your
.sh_history to 000.

$ chmod 000 .sh_history

After this is done, the various shells that may exist will not save every command to the file
thus keeping the history in memory. Since every memory is different, as every shell is run
in a different process, every shell will have its own history (in memory) of commands.

Links to this post

Create a Link