Re: clear history in the terminal

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

 



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


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

  Powered by Linux