mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
24 lines
389 B
Markdown
24 lines
389 B
Markdown
![]() |
# whoami
|
||
|
|
||
|
> 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`
|