whatis sudo

sudo

Also known as: superuser do, sudoers

The command that lets permitted users run individual commands as root (or another user), with authentication and logging.

What Is sudo in Linux?

sudo command runs one command with root privileges after asking for your own password. Who may use it, and for what, is defined in /etc/sudoers and /etc/sudoers.d/, which should always be edited with visudo to avoid syntax errors that lock you out.

Typically members of the sudo (Debian/Ubuntu) or wheel (Fedora/Arch) group get full access. Every sudo use is logged, which is one reason it is preferred over logging in as root.

Example

sudo -l
sudo visudo -f /etc/sudoers.d/deploy