Command-Line-Fu, Because Knowledge is Power
Mar 17, 2009, 12:32 (1 Talkback[s])
(Other stories by Juliet Kemp)
"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."
Complete
Story
Related Stories:
- Colorize grep output(Mar 16, 2009)
- Essential Linux tools for the PC technician(Mar 16, 2009)
- Intro to Shell Programming: Writing a Simple Web Gallery(Mar 12, 2009)
- Linux tip: Finding rootfs during boot(Mar 12, 2009)
- 8 Essential Vim Editor Navigation Fundamentals(Mar 12, 2009)
- 10 tips from Benjamin Franklin for System Admins(Mar 10, 2009)
- More Linux tips every geek should know(Mar 06, 2009)
- The command-line phrasebook(Mar 05, 2009)
- Mommy, I found it! -- 15 Practical Linux Find Command Examples(Mar 04, 2009)