O'Reilly logo

Mac OS X Tiger in a Nutshell by Jason McIntosh, Chuck Toporek, Chris Stone, Andy Lester

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required