- You can use the up arrow to view the previous command
- Type !! and press enter for the previous command
- Type !-1 and press enter for the previous command
- Press Control+P will also display the previous command
Monday, June 8, 2015
How to get Previous commands quickly in Ubuntu / Debian Linux
Saturday, June 6, 2015
How to Disable Bash History Temporarily in Ubunu / Debian Linux
Some times we want to use password as command line argument. Storing your password in .bash_history file is not a good idea.
use the following command
$ unset HISTFILE
it is only for current session.