August 1999
Intermediate to advanced
1000 pages
83h 9m
English
/usr/bin/groups [user... ] The groups command 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.
The following example shows the groups for users winsor, ray, and des.
castle% groups winsor ray des
winsor : staff other sysadmin
ray : staff other sysadmin
des : staff sysadmin
castle% | /etc/passwd | Password file. |
| /etc/group | Group file. |
See attributes(5) for descriptions ...
Read now
Unlock full access