I saw the command
sudo !!
in a video.
What does this mean?
|
show 4 more comments
feedback
|
This question came from our site for professional and enthusiast programmers.
|
From the bash manual:
And from the
So, | |||||||||||
feedback
|
|
The double exclamation point "!!" is used to recall the last line entered into a shell.
So if I executed
but then remembered I needed super user privelages, one could simply type
rather than typing | ||||
|
feedback
|
infoandman. If you have them installedman COMMANDwill give you information on what the command does likeman sudo. If you don't have it installed install apt-file withsudo apt-get install apt-filethen you can search with apt-file which packet contains the man command (if you are using debian or derivate of debian). – Darokthar Feb 19 '11 at 19:19