Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Linux whoami command

Linux whoami command

Linux Command Reference Linux Command Reference

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

Displays the current user's name; this command is equivalent to running "id -un".

Syntax

whoami [--help][--version]

Parameter Description:

Example

Display the username

# whoami 

root

Linux Command Reference Linux Command Reference