Wednesday, 30 July 2003

How to clear your terminal history on Linux

If you need to clear your terminal history in Linux you can use the following command. The history is saved in the .bash_history file in your home directory. 


cat /dev/null > ~/.bash_history && history -cw && exit


No comments:

Post a Comment