To uniqely record every new command is tricky. First you need to add to "~/.profile" or similar:
HISTCONTROL=erasedups PROMPT_COMMAND='history -a' Then you need to add to "~/.bash_logout":
history -a history -w To uniqely record every new command is tricky. First you need to add to "~/.profile" or similar:
HISTCONTROL=erasedups PROMPT_COMMAND='history -a' Then you need to add to "~/.bash_logout":
history -a history -w