Marius van Witzenburg We fight for our survival, we fight!

14Jun/110

How to clear Bash shell history when you log out of the command-line

On some machines I prefer to not leave a log of everything I typed on the command-line. So, I remove the logs and clear the history.
To accomplish this you have to add the lines below to ~/.bash_logout:

history -c
rm -f ~/.bash_history
rm -f ~/.history

Posted by mariusvw

Geëtiketeerd als: , , Laat een reactie achter
Reacties (0) Trackbacks (0)

Nog geen reacties


Leave a comment

(required)

Nog geen trackbacks.