386BSD 0.1 development
[unix-history] / usr / othersrc / public / shellutils-1.6 / man / cat1 / id.0
ID(1L) ID(1L)
N\bNA\bAM\bME\bE
id - print real and effective UIDs and GIDs
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
i\bid\bd [-gnruG] [--group] [--name] [--real] [--user]
[--groups] [username]
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
This manual page documents the GNU version of i\bid\bd. i\bid\bd
prints information about the given user, or the process
running it if no user is specified. By default, it prints
the real user ID, real group ID, effective user ID if dif-
ferent from the real user ID, effective group ID if dif-
ferent from the real group ID, and supplemental group IDs.
It prints each of these values preceded by a string iden-
tifying it and followed by the corresponding user or group
name in parentheses.
The options cause i\bid\bd to print only part of the above
information.
O\bOP\bPT\bTI\bIO\bON\bNS\bS
-_\bg, --_\bg_\br_\bo_\bu_\bp
Print only the group ID.
-_\bn, --_\bn_\ba_\bm_\be
Print the user or group name instead of the ID num-
ber. Requires -_\bu, -_\bg, or -_\bG.
-_\br, --_\br_\be_\ba_\bl
Print the real, instead of effective, user or group
ID. Requires -_\bu, -_\bg, or -_\bG.
-_\bu, --_\bu_\bs_\be_\br
Print only the user ID.
-_\bG, --_\bg_\br_\bo_\bu_\bp_\bs
Print only the supplementary groups.
The long-named options can be introduced with `+' as well
as `--', for compatibility with previous releases. Even-
tually support for `+' will be removed, because it is
incompatible with the POSIX.2 standard.
1