“The very top one when I looked, sudo !!, is something that I
knew the pieces of but for some reason never thought of putting
together: !! is a reference to the last command issued, so sudo !!
runs that under sudo. Perfect when you’ve just run something and
got “permission denied”, and quicker than my usual method of using
the up arrow and then Ctrl-A to go to the start of the line.”
Command-Line-Fu, Because Knowledge is Power
By
Juliet Kemp
Get the Free Newsletter!
Subscribe to Developer Insider for top news, trends, & analysis