Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
AaronBBrown
on Jan 11, 2013
|
parent
|
context
|
favorite
| on:
Devops/Sysadmin Cheatsheet
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!
sudara
on Jan 12, 2013
|
next
[–]
This is exactly how I use it. A time saver for mundane "whups" moments.
biturd
on Jan 11, 2013
|
prev
[–]
why would that be bad? You would get to read your file.
AaronBBrown
on Jan 12, 2013
|
parent
[–]
It'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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: