Nur Rony
Polyglot Programmer, DevOps and Forever Learner

Clear Terminal History Completely

Clear Terminal History Completely

Sometimes you need to nuke Bash History completely. here is a simple command to do it effectively

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

To remove Zsh history replace ~/.bash_history with ~/.zsh_history

Hope this nifty tip helps you.