Quote Originally Posted by CaptainMark View Post
I've noticed similar behaviour when running two terminals at the same time, I find that only commands entered into one of the two terminals are logged in .bash_history perhaps the first one open get precedence???
I think this happens: There is only on file to save the commands, ~/.bash_history. And the latest exit from a terminal window will write the history of that window (and overwriting any history from other windows that you closed before). So if you want to keep the history of a particular window, close the other ones before.