Ubuntu Manpages

id

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

id [-a|--ignore] [-A ] [-u|--user] [-g|--group] [-G|--groups] [-p ] [-n|--name] [-P ] [-r|--real] [-z|--zero] [-Z|--context] [-h|--help] [-V|--version] [USER]

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

ignore, for compatibility with other versions
Display the process audit user ID and other process audit properties, which requires privilege (not available on Linux).
Display only the effective user ID as a number.
Display only the effective group ID as a number
Display only the different group IDs as white-space separated numbers, in no particular order.
Make the output human-readable. Each display is on a separate line.
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.
Display the id as a password file entry.
Display the real ID for the -G, -g and -u options instead of the effective ID.
delimit entries with NUL characters, not whitespace; not permitted in default format
print only the security context of the process (not enabled)
Print help
Print version
[USER]

The id utility displays the user and group names and numeric IDs, of the calling process, to the standard output. If the real and effective IDs are different, both are displayed, otherwise only the real ID is displayed.

If a user (login name or user ID) is specified, the user and group IDs of that user are displayed. In this case, the real and effective IDs are assumed to be the same.

v(uutils coreutils) 0.8.0