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

Re: clear history in the terminal



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 illegal-access de
      Schlösserweg 26                    (+49)(0)2572-87 14 87
      D-48282 Emsdetten                  (+49)(0)170-44 900 14



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