Execute last command as root

Re-run previously entered command as root user.

sudo !!

!! is automatically substituted to the content of the previous command. Turning the above line into sudo <your command here>.


Get regular Shell tips & tutorials direct to your Inbox.

Discussion

Related posts