3 ms·
I use this one like a dozen times a day. user@host$ less /var/log/syslog Permission Denied crap... $ sudo !! sudo less /var/log/syslog Woo!
by AaronBBrown 14y ago
I use this one like a dozen times a day.
user@host$ less /var/log/syslog
Permission Denied
crap...
$ sudo !!
sudo less /var/log/syslog
Woo!
- biturd 14y agowhy would that be bad? You would get to read your file.
- AaronBBrown 14y agoIt's not bad. It's extremely useful. If someone is so negligent that they run something potentially destructive and then immediately sudo !!, they probably shouldn't be administering systems.
- sudara 14y agoThis is exactly how I use it. A time saver for mundane "whups" moments.