Simple way to clear Linux History
A really simple way to clear terminal history in either linux or mac is to use this command:
cat /dev/null > ~/.bash_history && history -c && exit
A really simple way to clear terminal history in either linux or mac is to use this command:
cat /dev/null > ~/.bash_history && history -c && exit
Leave a comment