Permissions et sécuritéCLI Manual
$sudo
Execute a command with superuser (root) security privileges.
Syntaxe de la commandePOSIX Standard
sudo [OPTIONS] COMMANDEssayer en direct dans le bac à sable interactif
Simulation côté client sans installation avec retour instantané.
bash — terminal
AST Sandbox (Free)
Aperçu et fonctionnement
`sudo` (SuperUser DO) allows authorized users to execute sensitive system administration commands with root privileges according to the `/etc/sudoers` policy.
Options et drapeaux courants
| Flag / Option | Description |
|---|---|
| -i, --login | Launch an interactive login shell as the root user. |
| -u [user] | Run command as a specified user instead of root. |
| -l | List allowed and forbidden commands for the invoking user. |
Exemples pratiques du monde réel
#1Update system package index as root
sudo apt updateElevates privileges to refresh package repositories.