clear history in the terminal

Tony Nelson tonynelson at georgeanelson.com
Wed May 10 20:43:36 UTC 2006


At 11:50 AM -0700 5/10/06, Don Russell wrote:
>On 5/10/2006 11:22 AM, Scot L. Harris wrote:
>> On Wed, 2006-05-10 at 10:20 -0700, 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?
>>> Dennis
>>>
>>
>> history -c
>
>While we're on the subject, can history *not* record a command if it is
>identical to the previous command?
>
>It's great being able to recall past commands.... but sometimes I use
>the same command multiple times before wanting to go back to some
>different one. Is it it useful to know "this command was entered 5 times
>in a row? I think it's more useful to just use as a "recall previous
>(different) command...
>
>Is this an RFE sort of thing? I'll gladly create a rfe/bug ...

It's more of a RTFM sort of thing.  It's all in man bash; search for
"history".  Look at HISTCONTROL.
____________________________________________________________________
TonyN.:'                       <mailto:tonynelson at georgeanelson.com>
      '                              <http://www.georgeanelson.com/>




More information about the users mailing list