whoami

Print the current user id and name. Same as id -un.

Syntax
      whoami [options]

Options
   --help      Display Help
   --version   Display program version info

The whoami utility has been obsoleted by the id(1) utility, and is equivalent to 'id -un'.
The command id -p is suggested for normal interactive use.

The whoami utility displays your effective user ID as a name.

"He travels the fastest who travels alone" ~ Rudyard Kipling

Related linux commands:

id - Print user and group ids'
who - Print all usernames currently logged in.
Equivalent Windows command: %username%


Copyright © SS64.com 1999-2018
Some rights reserved