~/.bash_history

Clear Shell History In Ubuntu Linux

by Vivek Gite on July 7, 2009 · 1 comment

How do I clear the shell history in Ubuntu Linux?

{ 1 comment }

Q. I just noticed faq about clearing dns cache and there are lots of commands stored in my cache. Can you tell me the command to clear out my command history or cache from a shell prompt?

{ 8 comments }

Linux / UNIX: Clear bash history

by Vivek Gite on October 15, 2007 · 10 comments

Q. I’m using CentOS Linux server and how do I clear bash history in UNIX / Linux / BSD operating systems? A. Type the following command to clear your bash history: >~/.bash_history Another option is link ~/.bash_history to /dev/null: ln -sf /dev/null ~/.bash_history

{ 10 comments }