Online Linux Terminal Logo
OnlineLinuxTerminal
System & ProzesseCLI Manual

$whoami

Print the effective username associated with the current shell session.

BefehlssyntaxPOSIX Standard
whoami [OPTIONS]
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

`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 / OptionDescription
--helpDisplay help summary and exit.
--versionOutput version information and exit.

Praktische Anwendungsbeispiele

#1Check active user identity

Prints current session username.