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.
-
-r
With
-u
,-g
, or-G
, print real, not effective, UID or GID.-
-u
Print UID only.
Get Mac OS X Panther in a Nutshell, 2nd Edition 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.