DEV Community

Cover image for When you forgot to use sudo in linux bash
Geof
Geof

Posted on

When you forgot to use sudo in linux bash

linux bash meme image

Save yourself some seconds

Once in a while we tend to make that mistake of forgetting to put sudo first when trying to run a command that requires root permission. When this happens we tend to start all over again by running the same command again.
Fortunately there's is a solution that saves you some seconds:
Just type sudo !!
Yes! That's it. The same command will be run again but with sudo this time.
Just be sure you have the root privileges.
Hit the follow button to see more hacks like this..

Top comments (0)