People are capable of all kinds of good thinking, but some just don't see what's right in front of their noses.
Home
 

How to Clear the Terminal History on Linux / Mac OS X

It’s easy. Just type this command:

history -c

All that history is stored in the ~/.bash_history file — that tilde and slash represent our user folder, so it’s really something like /home/username/.bash_history and it contains all of the commands we’ve typed at the terminal.

We could just edit that file to remove the line that we are trying to get rid of

March 9, 2014 This post was written by Categories: ITLinux Tagged with:
No comments yet


Leave a Reply

Top