> 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