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

by Ramesh

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

# history -c
1 Leo.Jr90 October 5, 2010 at 10:41 am

Another way to do it is:

echo “” > ~/.bash_history

Comments on this entry are closed.

Previous post:

Next post: