English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux whoami command

Linux Command Manual

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

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

Syntax

whoami [--help][--version]

Parameter Description:

  • --help  Online help.
  • --version  Display version information.

Online Examples

Display Username

# whoami 
root

Linux Command Manual