The UNIX and Linux Forums  
Hello and Welcome from to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 07-03-2009
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,759
HISTFILE is readonly - it controls the file used.
Bash Reference Manual: Bash History Facilities

I would consider setting HISTFILE to something during login, like
Code:
HISTFILE=/history_files/$USER.$(date +%Y%m%d:%H:%M)
readonly HISTFILE
The /history_files directory will need to be setup like /var/tmp - allow users to read & write & own files.

Code:
$ ls -ld /var/tmp
drwxrwxrwt 16 root sys 8192 Jul  3 17:54 /var/tmp