To clean bash history on Ubuntu terminal, run command below. Sometimes you might need to close terminal or reboot the computer.


Clean history


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