Skip to main content
1 of 2
Zombo
  • 1
  • 7
  • 47
  • 65

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 
Zombo
  • 1
  • 7
  • 47
  • 65