VM - Bash History

Bash history is cleared every time I log in on the VM - any idea how to keep the bash history?

Thanks!

Having just fought this problem myself, I find it annoying nobody answered your question so I’ll try:

  • in your home directory edit “.bash_profile”, find the line “/var/scripts/history.sh”, and comment it out (or delete it) because it truncates ~/.bash_history.

Maybe it’s someone’s idea of best security practices, but irritating as hell.