Re:Damn Useful: When You Forget to type Sudo
by lanaer on Tuesday December 09, 2008 @12:11PM
(#391452)
Easier than [Esc, .] is !$. Does the same thing.
Either work, it all amounts to habit. My fingers are just used to hitting esc, . and it's nice to see the argument get inserted inline as I'm editing.
i.e.
Also, "Esc, dot" is an awesome bash shortcut. (Press them consecutively, not concurrently). It inserts the last argument of the previous command in place. So if you're doing something to the same file, Esc, . will usually bring up the file name.i.e.