Can history files be unified in bash?
I use Ubuntu Server 9.10 and I would like to be able to see my bash history for more than one terminal sessions. I.e. my last 200 commands or so, even if I have been logged out in between.
When I use the
history I just see all commands from my actual terminal session. How can I see more command history from Bash? Is there any specific settings for bash that I should change from the default values in Ubuntu?
I don't have a
~/.bash_history file. But I have an
echo $HISTFILE /home/sanoj/.bash_history echo $HISTSIZE 500 echo $HISTFILESIZE 500 echo $HISTCONTROL ignoreboth
UPDATE: I am now trying Ubuntu Server 10.10 in VirtualBox. If I just turn off VirtualBox without the shutdown command, then next time when I boot, the commands from the last session is not saved in the history file.
The commands are only saved if I shutdown the machine with the shutdown command. E.g. shutdown -P 0.
This must be the reason to my problem. So I have to figure out how to save the command-history more often. E.g. after each command.