[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash history when running several term sessions to same account
From: |
Chet Ramey |
Subject: |
Re: Bash history when running several term sessions to same account |
Date: |
Tue, 15 Jan 2002 16:18:04 -0500 |
> How do I make the history from one term session available to another
> term session?
>
> I might be in a different term session when I want to run the command
> line first typed in a different session.
>
> Both terms are logged into the same account on a Linux Mandrake 8.1
> server. If I type in a length command linein one window, how and when
> does it become available in the other? It's all logged to the same
> ~/.bash_history file isn't it?
Each bash instance keeps the history list in memory. The list is
written to the history file on exit or when told to using `history -w'
or `history -a'.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)
Chet Ramey, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/