Ubuntu saves only 500 last used ssh commands. It will overwrite the history file Moneygram locations if this limit is over. By adding the following line to ~/.bashrc , you can instruct Ubuntu to append to the history file, thus preventing the overwriting
[code]shopt -s histappend[/code]
Just execute this command to append the line to the basnrc file
[code]
echo “shopt -s histappend” >> ~/.bashrc
[/code]
Originally found here
If you want to erase complete bash history then use the following command
[code]echo > ~/.bash_history [/code]
Hope this helps.