capturing bash history

Dave Cross dave at dave.org.uk
Tue Jun 12 12:50:07 BST 2007


Nigel Hamilton wrote:
> Hi,
> 
>         I'd like to keep a history of all shell commands across all the
> xterms I'm using but the ~/.bash_history only holds history from one
> terminal.
> 
>         Any ideas on interleaving the shell history from multiple
> terminals into one file?

I think you need slides 3 - 8 from

   http://www.ukuug.org/events/linux2003/papers/bash_tips/

Slides 3 - 7 explain the problem. Slide 8 gives the solution.

Dave...


More information about the london.pm mailing list