Re: clear history in the terminal

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

 



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@xxxxxxxxxxxxxxxxx>
      '                              <http://www.georgeanelson.com/>


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

  Powered by Linux