Rerun the last command with sudo on the Linux shell

Friday, February 19, 2010 posted by Till

Have you ever executed a command on the shell and noticed the that you had to run it with sudo? Instead of typing the command again with “sudo” in front of it, just run:

sudo !!

which will execute the command that was run before with sudo. Thanks to Planetfox for this tipp.



Leave a Reply

*