Online Linux Terminal Logo
OnlineLinuxTerminal
Berechtigungen & SicherheitCLI Manual

$sudo

Execute a command with superuser (root) security privileges.

BefehlssyntaxPOSIX Standard
sudo [OPTIONS] COMMAND
Linux-Community2.4k Online

Tausche dich mit Linux-Nutzern aus, lerne Befehle und lade PDF-Cheatsheets herunter.

Live im interaktiven Terminal ausprobieren

Client-seitige Simulation ohne Installation mit sofortigem Feedback.

Im Vollbild-Terminal öffnen ↗
bash — terminal

Ü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 / 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.

Praktische Anwendungsbeispiele

#1Update system package index as root
sudo apt update

Elevates privileges to refresh package repositories.