groups — show group memberships
shows the groups to which the caller or the optionally specified
If invoked with no arguments,
prints the current access list returned by
Each user belongs to a group specified in the password file
and possibly to other groups as specified in the files
A user is granted the permissions of those groups specified in
at login time.
The permissions of the groups specified in
are normally available only with the use of
If a user name is specified with no options,
prints the union of all these groups.
options limit the printed list to those groups specified in
If a user name is not specified with any of these options,
is called to determine the default user name (see
The printed list of groups is sorted in ascending collation order
(see Environment Variables below).
determines the order in which the output is sorted.
is not specified in the environment or is set to the empty string,
the value of
is used as a default.
is not specified or is set to the empty string, a default of ``C'' (see
is used instead of
If any internationalization variable contains an invalid setting,
behaves as if all internationalization variables are set to ``C'' (see
and display all groups to which user
was developed by the University of California, Berkeley.