Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
nurb
· 9y ago · 0 comments
Another trick is to use "!!" which is the last command launched, especially useful if you forgot a "sudo" in front of your command, just write
sudo !!
In the same way, "!*" is all the arguments of your previous command, and "!$" only the last one.
Comments
[–]
jcutrell
9y ago
Came here to mention the sudo-bang-bang trick, which really has the best name of all the commands I know.