Skip to main content
2 of 2
edited body
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 -w' 

Then you need to add to ~/.bash_logout:

history -a history -w 
Zombo
  • 1
  • 7
  • 47
  • 65