Sistema y procesosCLI Manual
$whoami
Print the effective username associated with the current shell session.
Sintaxis del comandoPOSIX Standard
whoami [OPTIONS]Prueba en vivo en la terminal interactiva
Simulación del lado del cliente sin instalación y con respuesta inmediata.
bash — terminal
AST Sandbox (Free)
Descripción general y funcionamiento
`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.
Opciones y banderas comunes
| Flag / Option | Description |
|---|---|
| --help | Display help summary and exit. |
| --version | Output version information and exit. |
Ejemplos prácticos del mundo real
Comandos de Linux relacionados
$psSistema y procesos
Muestra una instantánea de los procesos activos en ejecución.
$topSistema y procesos
Display real-time Linux processes and system resource utilization.
$htopSistema y procesos
Interactive process viewer with colorful CPU meters and mouse support.
$killSistema y procesos
Send termination or control signals to processes by PID.
$sudoPermisos y seguridad
Execute a command with superuser (root) security privileges.
$dateSistema y procesos
Display or set system date and time.