
id - show user information

id [-Gnuagraph] [user]

id displays the user and group names and numeric IDs of the calling process. If the real and effective IDs are different, both are displayed, otherwise only the real ID is displayed.
If a user (username or user ID) is specified, the information about that user is displayed instead of the information from the calling process.

-G,
-g and -u to display the matching name instead of the number for the user and group IDs.
If any of the ID numbers do not have a matching name,
the number will be displayed as usual.
-g and <-u> to display the information associated with the real user/group IDs instead of the effective ID information.

id returns 0 on success or 1 if an error occurred.

Theo Van Dinter (felicity@kluge.net)

who(1)