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 
> linuxusersgroup@googlegroups.**com<[email protected]>
> To unsubscribe, send email to linuxusersgroup+unsubscribe@**
> googlegroups.com <linuxusersgroup%[email protected]>
> For more options, visit our group at http://groups.google.com/**
> group/linuxusersgroup <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<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-Rules or 
http://cdn.fsdev.net/List-Rules.pdf)

Reply via email to