[Cialug] repeat w/ sudo

Tom Pohl tom at tcpconsulting.com
Tue Mar 2 12:12:58 CST 2010


Say you did a:
ls /usr/local/really/long/path/i/dont/want/to/retype

to do that as sudo !ls

-Tom

On Mar 2, 2010, at 11:04 AM, Matthew Nuzum wrote:

> What's the simplest, shortest, easiest to perform, whatever way to repeat the last command but with sudo in front of it?
> 
> currently I up arrow, ctrl + a then type sudo [space] [enter].
> 
> It seems like something so common should have a keyboard shortcut.
> 
> -- 
> Matthew Nuzum
> newz2000 on freenode, skype, linkedin, identi.ca and twitter
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cialug.org/pipermail/cialug/attachments/20100302/f0ed7d67/attachment.htm 


More information about the Cialug mailing list