tutorials bash

Execute last command as root

Re-run previously entered command as root user.

python
sudo !!

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