Clear Terminal History

rm -fr ~/.bash_history

ln -s /dev/null ~/.bash_history

Your history will be available in ram for each bash session, but will be gone once you log out.1

  1. http://ubuntuforums.org/archive/index.php/t-267950.html []

2 thoughts on “Clear Terminal History

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>