clear history in the terminal
Robin Laing
Robin.Laing at drdc-rddc.gc.ca
Wed May 10 19:07:08 UTC 2006
alan wrote:
> 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
>
You can also prevent the history file from storing any info by adding
the HISTSIZE=0 in your .bash_profile. And export it.
I prefer to leave mine at two or three commands for convenience and the
added privacy. I usually have a clear and exit in the history file.
--
Robin Laing
More information about the fedora-list
mailing list