Removing your bash history

I'm not a big fan of the .bash_history file in my home directory. I do not want people (including root) to know my command history. So, in my ~/.bash_profile, I export the following entry:


This means that nothing will be logged to my ~/.bash_history file. I will still have keystroke history and recall, the HISTSIZE env variable, but command history will not be written to the ~/.bash_history file.

Last updated: 13/02/2005