id

version: 0.0.9
id [OPTIONS] [USER]...

Print user and group information for each specified USER, or (when USER omitted) for the current user.

Options

--help, -h

Print help information

--version, -V

Print version information

-A

Display the process audit user ID and other process audit properties, which requires privilege (not available on Linux).

--user, -u

Display only the effective user ID as a number.

--group, -g

Display only the effective group ID as a number

--groups, -G

Display only the different group IDs as white-space separated numbers, in no particular order.

-p

Make the output human-readable. Each display is on a separate line.

--name, -n

Display the name of the user or group ID for the -G, -g and -u options instead of the number. If any of the ID numbers cannot be mapped into names, the number will be displayed as usual.

-P

Display the id as a password file entry.

--real, -r

Display the real ID for the -G, -g and -u options instead of the effective ID.

--zero, -z

delimit entries with NUL characters, not whitespace; not permitted in default format

--context, -Z

print only the security context of the process