News for hackers. Stuff that matters.
Re:Run last command as root by iclelland on Thursday December 16, 2010 @01:03PM (#2012954)
I've always pronounced this command as

"sudo make me a sandwich"

Re:Run last command as root by iclelland on Thursday December 16, 2010 @01:10PM (#2012980)
Seriously, though, "!!" is just a special case of Bash's history expansion

man bash, and search for "^HISTORY EXPANSION" for all the details.

I often find myself running commands like

cp !:2 !:1 # reverses the order of the last two args

cd /somedir && !! # run the last command in a better directory