id(1) DG/UX 4.30 id(1)
NAME
id - print user and group IDs and names
SYNOPSIS
id [ -g | -u ] [ -nr ]
DESCRIPTION
Id writes a message on the standard output giving the user
and group IDs and the corresponding names of the invoking
process. If the effective and real IDs do not match, both
are printed.
Also, if there are any supplementary group affiliations,
they will also be printed.
Options are:
-g Output only the effective group ID. This may be
followed by any supplementary group IDs that are
different from the effective group ID.
-u Output only the effective user ID.
-r Used with -g or -u, output the real ID instead of the
effective ID.
-n Used with -g or -u, output the name instead of the
numeric ID.
EXAMPLES
$ id
uid=3000(intern) gid=1(other) groups=0(sys),5(mail)
$
Displays your user id, username, group id and group name on
the standard output. Also, in this example, you will notice
there are two other supplementary groups that are valid for
this user.
SEE ALSO
groups(1), getuid(2), setgroups(2), initgroups(3).
Licensed material--property of copyright holder(s) Page 1