display group information
groupinfo utility displays the name,
group ID (GID), and members of the specified
The options are as follows:
- Do not display anything (quiet mode). This form of the command is useful for scripts which need to check whether a particular group name or GID is already in use on the system.
The group argument may be either a group name or a GID.
groupinfo utility exits 0 if
group exists, and non-zero if it does not.
group(5), passwd(5), group(8), userinfo(8)
groupinfo utility first appeared in
groupinfo utility was written by
Alistair G. Crooks
If the specified group is the primary group
of a user, but that user is not listed as a member of the
group in the
groupinfo utility fails to list that user
as a member of the group.