December 23, 2015

Simple way to clear Linux History

OS X terminal
A really simple way to clear terminal history in either linux or mac is to use this command:

cat /dev/null > ~/.bash_history && history -c && exit

  • LinkedIn
  • Tumblr
  • Reddit
  • Google+
  • Pinterest
  • Pocket
Comments powered by Disqus