Bash history handling with multiple terminals

Posted by zetah on Ask Ubuntu See other posts from Ask Ubuntu or by zetah
Published on 2011-11-18T06:39:58Z Indexed on 2011/11/20 2:17 UTC
Read the original article Hit count: 971

I use mainly Terminator, and it's usually opened with 3 split terminal windows. I also use Gnome terminal for various reasons.
I'm wondering how is bash history handled in this case as I sometimes miss previously issued commands when I run history

For example, my prompt shows current bash history line (\!) and if I launch Terminator with 3 split terminal windows I get same history line (let's say 100) on all terminals. Which history will be saved?

Also launching Gnome Terminal after using Terminator I get line 100 at startup regardless all commands issued before in Terminator

© Ask Ubuntu or respective owner

Related posts about terminal

Related posts about bash