clear history in the terminal

Mauricio Vergara Ereche mave at nic.cl
Wed May 10 18:48:45 UTC 2006


El Miércoles, 10 de Mayo de 2006 14:41, alan escribió:
> On Wed, 10 May 2006, Dennis Castanos wrote:
> > I hope this isn't a stupid question!
> >  Can the history commands in the terminal be cleared? If so, how is it
> > done?
>
> rm ~/.bash_history

That will delete the previous history file, but if you use the arrow keys, 
you still will have the history record in memory... so when you log out the 
file will be made again (correct me if I'm wrong... but that happens to me 
with bash+konsole at least)

I suggest this:

export HISTSIZE=0

-- 
Mauricio Vergara Ereche                   User #188365 counter.li.org
NIC Chile                                         mave [@] nic [.] cl
Agustinas 1357 Piso 4, Santiago CHILE                   +56 2 9407721
Codigo Postal: 834-0432                             http://www.nic.cl




More information about the users mailing list