Linux whoami command
Linux whoami command displays the user's own name.
Display own user name, this instruction is equivalent to the implementation of "id -un" instruction.
grammar
whoami [--help][--version]
Parameter Description:
- --help online help.
- --version display version information.
Examples
Display User Name
# whoami root