sudo - execute a command as superuser

Usage: sudo [options] COMMAND [ARG...]

If the current user's account is not found in the /etc/sudoers file prints an error message and exits. Otherwise if the current user has a password set by the passwd utility, asks the password, otherwise does not ask the password. Then obtains superuser rights (the sudo program file has the setuid bit set), executes the COMMAND and exits.

Example

sxx
sudo rm /bin/useless.x

Options

long option short option description
‑‑help ‑h Print help and exit.

Implementation

Reference