nader's thinkery

Commandlinefu: Run the last command as root

Commandlinefu: Run the last command as root

command Mar 16, 2011
Really useful!

Run the last command as root
Useful when you forget to use sudo for a command. "!!" grabs the last run command.