Re: clear history in the terminal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Dennis,

there are no stupid questions... Your "shell-history" is stored in the
"~/.bash_history"-file. So, if you want to remove the history, just
remove the file.

Nice "hack": If you want this to be the default.... just "immutable"
this file: 
	rm        ~/.bash_history    # delete file
	touch     ~/.bash_history    # create "empty" history
        chattr +i ~/.bash_history    # disable changes on that file ;-)

cu,
 Joe

PS: Depending on your shell, the name of the history-file may change,
but typically is something like ".*_history"


 
--
      Dipl.-Ing. Jörg Ventker            joe@xxxxxxxxxxxxxxxxx
      Schlösserweg 26                    (+49)(0)2572-87 14 87
      D-48282 Emsdetten                  (+49)(0)170-44 900 14



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux