This is why I keep an administrative log.  Anything I did as root I save
the commands and steps in a text file on a flash drive. This isn't
foolproof but helps me find my oops moments.
On Oct 16, 2012 9:07 AM, "Daniel Eggleston" <[email protected]> wrote:
>
> Each terminal session saves its own, which is written out on closing (and
read in by new sessions).
>
> See here to change this behavior:
http://northernmost.org/blog/flush-bash_history-after-each-command/
>
>
> On Tue, Oct 16, 2012 at 10:55 AM, ping <[email protected]> wrote:
>>
>> hi folks:
>>
>> I think this might not be linux specific, but a general unix stuff.. but
not so sure...
>> so I sometime fine tuned a long command line and felt good.
>> but later I need to re-pop it up back from my another new terminal.
>> but somehow, mysteriously, I couldn't find it out , I normally get back
>> my old command in one of two ways:
>>
>> 1) ctrl-R and type the keyword
>> 2) history | grep KEYWORD
>>
>> but sometime neither works. AND...
>>
>> if I luckily still keep my original terminal open, then I can just go to
that original terminal where I typed those commands and get my command back
with one of the 2 methods...
>>
>> what happens? each terminal maintains a seperate instance of command
line history? is there a method that I can always rely on to find out my
old command?
>>
>> --
>> You received this message because you are subscribed to the Linux Users
Group.
>> To post a message, send email to [email protected]
>> To unsubscribe, send email to
[email protected]
>> For more options, visit our group at
http://groups.google.com/group/linuxusersgroup
>> References can be found at: http://goo.gl/anqri
>> Please remember to abide by our list rules (http://tinyurl.com/LUG-Rulesor
http://cdn.fsdev.net/List-Rules.pdf)
>
>
>
>
> --
>
>            Daniel
>
> --
> You received this message because you are subscribed to the Linux Users
Group.
> To post a message, send email to [email protected]
> To unsubscribe, send email to [email protected]
> For more options, visit our group at
http://groups.google.com/group/linuxusersgroup
> References can be found at: http://goo.gl/anqri
> Please remember to abide by our list rules (http://tinyurl.com/LUG-Rulesor
http://cdn.fsdev.net/List-Rules.pdf)

-- 
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup
References can be found at: http://goo.gl/anqri
Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules or 
http://cdn.fsdev.net/List-Rules.pdf)

Reply via email to