Y
Hacker News
new
|
ask
|
show
|
jobs
by
lowkey
2527 days ago
sudo !! to run the previous command as sudo (so useful when you forgot to sudo a long command)
2 comments
sethammons
2527 days ago
silly tip: alias fucking=sudo
$ rm file > denied $ fucking rm file
link
thijsvandien
2527 days ago
$ rm file > denied $ fucking !!
Hmmm.
link
tfdavids
2527 days ago
Also `<cmd> !$` to run a new command with the same argument as the previous command.
link