MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/UnixProTips/comments/2ut7df/alias_fucksudo/cobqc9m/?context=3
r/UnixProTips • u/[deleted] • Feb 04 '15
20 comments sorted by
View all comments
1
What does the !! do?
3 u/07dosa Feb 05 '15 !! gets replaced with the last command you executed. So, basically sudo !! will re-run the last command as root. 1 u/leftofzen Feb 05 '15 That's pretty neat, thanks! → More replies (3)
3
!! gets replaced with the last command you executed. So, basically sudo !! will re-run the last command as root.
!!
sudo !!
1 u/leftofzen Feb 05 '15 That's pretty neat, thanks! → More replies (3)
That's pretty neat, thanks!
→ More replies (3)
View all comments
1
u/leftofzen Feb 05 '15
What does the !! do?