How to clear the terminal history in Linux

history -c is the usual way to clear your terminal history in Linux, but that doesn’t always seem to cut it. To make sure it’s completely cleared, use this code.

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