User Tools

Site Tools


linux:ubuntu_clear_bash_history

Bash Clear History

One would asume that the following command:

history -c

One annoying side-effect is that the history entries has a copy in the memory and it will flush back to the file when you log out. A work around that works is the following.

cat /dev/null > ~/.bash_history && history -c && exit
linux/ubuntu_clear_bash_history.txt · Last modified: 11/12/2024 11:02 by Allan