In gui mode, when a user has more than one terminal open, how do the terminals rewrite the history file of that user? the reason I ask is because, it is quite possible that in each of the terminals the user ends up executing different commands. So, does the history file end up saving the commands from all the terminals or only from the first one to be opened? Or is there some other kind of scheme that is employed to tackle this situation?
It depends entirely on how the shell chooses to handle it
I originally got this idea from the O'Reilly "Unix Power Tools" book.
Every time my
If you're just opening new terminals in an X session, those usually aren't login shells, but you can configure them to act as login shells. For example,
Also, unless you're using a