sudo
Execute commands with superuser privileges.
$ sudo
Examples
# Run command as root sudo apt update # Run as specific user sudo -u john whoami # Login shell sudo -i # Preserve environment sudo -E env | grep PATH
Execute commands with superuser privileges.
Examples
# Run command as root sudo apt update # Run as specific user sudo -u john whoami # Login shell sudo -i # Preserve environment sudo -E env | grep PATH