System & ProzesseCLI Manual
$whoami
Print the effective username associated with the current shell session.
BefehlssyntaxPOSIX Standard
whoami [OPTIONS]Live im interaktiven Terminal ausprobieren
Client-seitige Simulation ohne Installation mit sofortigem Feedback.
bash — terminal
AST Sandbox (Free)
Überblick & Funktionsweise
`whoami` outputs the username of the currently logged-in effective user. It is widely used in shell scripts to verify whether execution is running under root or an unprivileged service account.
Wichtige Optionen und Flags
| Flag / Option | Description |
|---|---|
| --help | Display help summary and exit. |
| --version | Output version information and exit. |
Praktische Anwendungsbeispiele
Verwandte Linux-Befehle
$psSystem & Prozesse
Momentaufnahme der aktuell ausgeführten Systemprozesse anzeigen.
$topSystem & Prozesse
Display real-time Linux processes and system resource utilization.
$htopSystem & Prozesse
Interactive process viewer with colorful CPU meters and mouse support.
$killSystem & Prozesse
Send termination or control signals to processes by PID.
$sudoBerechtigungen & Sicherheit
Execute a command with superuser (root) security privileges.
$dateSystem & Prozesse
Display or set system date and time.