Name
id
Synopsis
id [options
] [username
]
Displays information about yourself or another user: UID, GID, effective UID and GID if relevant, and additional GIDs.
Options
- -g
Print GID.
- -G
Print supplementary GIDs.
- -n
With -u, -g, or -G, print user or group name, not number.
- -p
Print the output in a more easily read format. Not used with other options.
- -P
Print in the format used by the system password file, /etc/passwd.
- -r
With -u, -g, or -G, print real, not effective, UID or GID.
- -u
Print UID only.
Get Mac OS X Tiger in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.