[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    groups(1) manual page Table of Contents

Name

groups - print group membership of user

Synopsis

groups [ user... ]

Availability

SUNWcsu

Description

The command groups prints on standard output the groups to which you or the optionally specified user belong. Each user belongs to a group specified in /etc/passwd and possibly to other groups as specified in /etc/group. Note that /etc/passwd specifies the numerical ID (gid) of the group. The groups command converts gid to the group name in the output.

Example

The output takes the following form:


example% groups tester01 tester02
tester01 : staff
tester02 : staff
example%

Files

/etc/passwd
/etc/group

See Also

group(4) , passwd(4)


Table of Contents