whoami (1)

Quick Reference

Display details about the current user.

  • Display the username of the current user:

whoami

  • Display the groups that the current user is a member of:

whoami /groups

  • Display the privileges of the current user:

whoami /priv

  • Display the user principal name (UPN) of the current user:

whoami /upn

  • Display the logon id of the current user:

whoami /logonid

NAME

whoami - print effective userid

SYNOPSIS

whoami [ OPTION]...

DESCRIPTION

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

AUTHOR

Written by Richard Mlynarik.

REPORTING BUGS

GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
 
Report whoami translation bugs to <https://translationproject.org/team/>

SEE ALSO

Full documentation at: <https://www.gnu.org/software/coreutils/whoami>
 
or available locally via: info '(coreutils) whoami invocation'

Information

Source
Coreutils
OS/version
GNU coreutils 8.29.13-0a854
Source updated
December 2, 2018
Page created
February 9, 2018
Page generated
December 2, 2018