Permisos y seguridadCLI Manual
$sudo
Execute a command with superuser (root) security privileges.
Sintaxis del comandoPOSIX Standard
sudo [OPTIONS] COMMANDPrueba en vivo en la terminal interactiva
Simulación del lado del cliente sin instalación y con respuesta inmediata.
bash — terminal
AST Sandbox (Free)
Descripción general y funcionamiento
`sudo` (SuperUser DO) allows authorized users to execute sensitive system administration commands with root privileges according to the `/etc/sudoers` policy.
Opciones y banderas comunes
| 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. |
Ejemplos prácticos del mundo real
#1Update system package index as root
sudo apt updateElevates privileges to refresh package repositories.