Terminal Dojo
Help العربية Sign inGet started

Command library / whoami

whoami

CMDDraft — pending expert review3 practice missions

Show which user account this shell is running as

Reports the identity behind the current session. On its own it just prints DOMAIN\username, but /groups lists every group that account belongs to and /priv lists every privilege its token holds — both are standard first checks after landing a shell.

Practice whoami

Usage

whoami [/groups] [/priv]

Options and flags

Examples

Common mistakes

whoami /group whoami /groups

The real switch is plural — /groups, not /group. An unrecognised switch like this is simply rejected.

Related commands

get-servicetasklist