xref: /titanic_52/usr/src/man/man1/groups.1 (revision 7aa76ffc594f84c1c092911a84f85a79ddb44c73)
te
Copyright 1989 AT&T Copyright (c) 1992, Sun Microsystems, Inc. All Rights Reserved
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
groups 1 "14 Sep 1992" "SunOS 5.11" "User Commands"
NAME
groups - print group membership of user
SYNOPSIS

groups [user]...
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.

EXAMPLES

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), attributes(5)