![]() Sudo used on pacman | |
Release Status | Maintained |
---|---|
Last Release | 1.9.16p2, 2024-11-25 |
Language(s) | C |
Developer(s) | sudo project |
Website | www.sudo.ws/ |


Defaults insults
is addedThe command line tool sudo
is used to run commands as another user (most likely root).[1] Its name is shorthand for "su 'do'"[2], however as su
stands for "substitute user"[3] this would stand for "substitute user, do". System administrators may configure sudo by editing the /etc/sudoers
file[1] to specify which users or groups can execute specific commands.
Usage
Command | Description |
---|---|
sudo <command>
|
Run the given command as superuser |
sudo -E <command>
|
Run the given command as superuser while keeping the current user's env vars |
sudo -s
|
Opens a shell with superuser permissions |
note: every mentioned command is also compatible with the -u <user>
argument, which will run the command as the given user instead of superuser[1]