8 ms·
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 th
by nurb 10y ago
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.
- jcutrell 10y agoCame here to mention the sudo-bang-bang trick, which really has the best name of all the commands I know.