Easy Tutorial
❮ Linux Comm Mdir Linux Comm Userdel ❯

Linux whoami Command

Linux Command Manual

The Linux whoami command is used to display the current user's name.

Displaying the current user's name, this command is equivalent to executing the "id -un" command.

Syntax

whoami [--help][--version]

Parameter Description:

Example

Display the username

# whoami
root

Linux Command Manual

❮ Linux Comm Mdir Linux Comm Userdel ❯