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

Linux whoami command

Comprehensive List of Linux Commands

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

Displays the current user's username, 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

Comprehensive List of Linux Commands