deleting login history after logging out

Ian Malone ibm21 at cam.ac.uk
Mon Jun 27 10:23:03 UTC 2005


 > Please tell me how to delete the user's bash history file after
 > he or she logs out.
 > I tried this /etc/skel/bash_logout
 >
 > rm -f $HOME/bash_history
 >
 > But it is not working.
 >
 > Can anyone tell me how to do this .I want to do it for every user.

I don't know much about the use of bash_logout, but the
file is:
$HOME/.bash_history
not:
$HOME/bash_history

Alternatively the command:
history -c
should work.  (See history under builtin commands, man bash)

-- 
imalone




More information about the fedora-list mailing list