Safia Abdalla blog.safia.rocks

What happens when you run `sudo !!`?

Safia Abdalla continues her excellent series of “what happens when” posts, this time tackling sudo !!:

One thing I’m sure everyone has done on the command line is to use the !! shortcut to run the command run previously with sudo.

Don’t be so sure, Safia. It took me literally years of command-lining around before I learned that trick. I bet you taught more than a few people about its existence with this very article. 👌

Source: https://blog.safia.rocks/post/173746752130/what-happens-when-you-run-sudo


No comments

Sign in or join to comment

0:00 / 0:00