SYNOPSIS

       /usr/5bin/id
       /usr/5bin/id -a

       /usr/5bin/posix/id [user]
       /usr/5bin/posix/id -a [user]
       /usr/5bin/posix/id -G [-n] [user]
       /usr/5bin/posix/id -g [-nr] [user]
       /usr/5bin/posix/id -u [-nr] [user]


DESCRIPTION

       The id command outputs the numerical and symbolic user and group IDs of
       the  invoking  user  or,  if   the   user   argument   is   given   for
       /usr/5bin/posix/id,  for  the  named user.  If an effective ID does not
       match the corresponding real ID, both are printed.

       The /usr/5bin/posix/id adds supplementary group memberships to the out-
       put by default.

       /usr/5bin/s42/id    and   /usr/5bin/posix2001/id   are   identical   to
       /usr/5bin/posix/id.

       The following options are accepted:

   /usr/5bin/id
       -a     Adds supplementary group memberships to the output.

   /usr/5bin/posix/id
       -a     Adds the primary group to the list of supplementary groups.

       -G     Writes real, effective and supplementary group ID numbers  only.

       -g     Writes the effective group ID number only.

       -n     Modifies  the output of the -G, -g, and -u options to print sym-
              bolic instead of numeric IDs.

       -r     Causes real instead of effective IDs to be printed.

       -u     Writes the effective user ID number only.


FILES

       /etc/passwd

       /etc/group


SEE ALSO

       groups(1), logins(1), getuid(2),  geteuid(2),  getgroups(2),  group(5),
       passwd(5)


NOTES

       Use  of  id  with any options or arguments is unportable.  For portable

Man(1) output converted with man2html