Berechtigungen & SicherheitCLI Manual
$sudo
Execute a command with superuser (root) security privileges.
BefehlssyntaxPOSIX Standard
sudo [OPTIONS] COMMANDLive im interaktiven Terminal ausprobieren
Client-seitige Simulation ohne Installation mit sofortigem Feedback.
bash — terminal
AST Sandbox (Free)
Überblick & Funktionsweise
`sudo` (SuperUser DO) allows authorized users to execute sensitive system administration commands with root privileges according to the `/etc/sudoers` policy.
Wichtige Optionen und Flags
| 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. |
Praktische Anwendungsbeispiele
#1Update system package index as root
sudo apt updateElevates privileges to refresh package repositories.