- 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
SES, SEO, SEM, Linux and Microcontroller Help, News and Experience sharing Blog
"My PIC Microcontroller Articles are moved to http://picmicrochip.blogspot.com
Monday, June 8, 2015
How to get Previous commands quickly in Ubuntu / Debian Linux
How to get Previous commands quickly in Ubuntu / Debian Linux
Saturday, June 6, 2015
How to Disable Bash History Temporarily in Ubunu / Debian Linux
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.
Subscribe to:
Posts (Atom)