Système et processusCLI Manual
$whoami
Print the effective username associated with the current shell session.
Syntaxe de la commandePOSIX Standard
whoami [OPTIONS]Essayer en direct dans le bac à sable interactif
Simulation côté client sans installation avec retour instantané.
bash — terminal
AST Sandbox (Free)
Aperçu et fonctionnement
`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.
Options et drapeaux courants
| Flag / Option | Description |
|---|---|
| --help | Display help summary and exit. |
| --version | Output version information and exit. |
Exemples pratiques du monde réel
Commandes Linux associées
$psSystème et processus
Afficher un instantané des processus en cours d'exécution dans le système.
$topSystème et processus
Display real-time Linux processes and system resource utilization.
$htopSystème et processus
Interactive process viewer with colorful CPU meters and mouse support.
$killSystème et processus
Send termination or control signals to processes by PID.
$sudoPermissions et sécurité
Execute a command with superuser (root) security privileges.
$dateSystème et processus
Display or set system date and time.