Previous post: Hack 59. Force history not to remember a particular command using HISTCONTROL
Next post: Hack 61. Substitute words from history commands
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 comment… read it below or add one }
Another way to do it is:
echo “” > ~/.bash_history
Leave a Comment
Name *
E-mail *
Website
{ 1 comment… read it below or add one }
Another way to do it is:
echo “” > ~/.bash_history