Latest web development tutorials

Linux whoami command

Linux command Daquan Linux command Daquan

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

Linux command Daquan Linux command Daquan