Linux whoami Command
The Linux whoami command is used to display the current user name.
Displays the current user's name. This command is equivalent to executing the "id -un" command.
Syntax
whoami [--help][--version]
Parameter Description:
- --help Online help.
- --version Displays version information.
Examples
Display the user name
# whoami rootOther Extensions
Linux Command Encyclopedia