OS Manuals

/usr/bin/whoami

GNU core utilities

From coreutils 9.12-r7 (os), captured 2026-11-05 by running whoami --help (exit 0). permalink

Usage: /usr/bin/whoami [OPTION]...
Print the user name associated with the current effective user ID.
Same as id -un.

      --help
         display this help and exit
      --version
         output version information and exit

Report bugs to: <bug-coreutils@gnu.org>.
GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
General help using GNU software: <https://www.gnu.org/gethelp/>
Full documentation <https://www.gnu.org/software/coreutils/whoami>
or available locally via: info '(coreutils) whoami invocation'
Options (2)
OptionDescriptionSource
--helpdisplay this help and exithelp + man
--versionoutput version information and exithelp + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.