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

Re: find a command i have recently used in bash



> The .bash_history is only written when bash is exiting, so it won't
> include commands you recently typed within the same session.  That is to
> say, it won't have anything since you most recently logged in.  It's
> also prone to missing some commands from previous sessions as well, in
> cases in which you had multiple sessions running concurrently.  This is
> because bash reads ~/.bash_history when starting up, works with the
> history in memory, then writes ~/.bash_history when exiting.

thanks.  I had noticed odd behavior regarding bash_history before, now I know 
why.

-jason pepas



Reply to: