ksh-rg
Last Updated: February 25, 2016
·
148
· wkjagt
Ccc9abdf9963f3452808cff0e77679a1

Copy previous command into current

When you use a double quotation mark in a shell command, it's replaced with whatever your previous command was. This is very useful when you need to execute the previous command, but prefixed with sudo, for example.

$ /etc/init.d/apache2 restart
Permission denied
$ sudo !!
Hooray!
Say Thanks
Respond