Clear and Disable Bash History



Need to clear your Bash history?
Use the Bash builtin history command:

history -c

To stop the writing of your Bash history to a file when you log out:

unset HISTFILE

See the Bash man page for details.