Logo
Web01
Ch4os1@web01:~/commands/sudo
← View all bash commands

sudo

Execute a command with superuser privileges.

Examples

sudo apt update
              

Update the package list with superuser privileges.

sudo systemctl restart apache2
              

Restart the Apache2 service with superuser privileges.

Notes

This command affects only the current shell session.