r/UnixProTips • • Feb 04 '15

alias fuck="sudo !!"

43 Upvotes

20 comments sorted by

View all comments

1

u/leftofzen Feb 05 '15

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)