Online Linux Terminal Logo
OnlineLinuxTerminal
Permissions et sécuritéCLI Manual

$sudo

Execute a command with superuser (root) security privileges.

Syntaxe de la commandePOSIX Standard
sudo [OPTIONS] COMMAND
Communauté Linux2.4k En ligne

Échangez avec des utilisateurs Linux, apprenez des commandes et téléchargez des PDF.

Essayer en direct dans le bac à sable interactif

Simulation côté client sans installation avec retour instantané.

Ouvrir dans le terminal plein écran ↗
bash — terminal

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 / OptionDescription
-i, --loginLaunch an interactive login shell as the root user.
-u [user]Run command as a specified user instead of root.
-lList allowed and forbidden commands for the invoking user.

Exemples pratiques du monde réel

#1Update system package index as root
sudo apt update

Elevates privileges to refresh package repositories.