Hack 60. Clear all the previous history using option -c

Sometime you may want to clear all the previous history. However you may still want to keep the history moving forward.

# history -c

Comments on this entry are closed.

  • Leo.Jr90 October 5, 2010, 10:41 am

    Another way to do it is:

    echo “” > ~/.bash_history