| Current File : //usr/man/zh_CN.UTF-8/man1/groups.1 |
'\" te
.\" Copyright 1989 AT&T Copyright (c) 1992, Sun Microsystems, Inc. All Rights Reserved
.TH groups 1 "1992 年 9 月 14 日" "SunOS 5.11" "用户命令"
.SH 名称
groups \- 输出用户的组成员身份
.SH 用法概要
.LP
.nf
\fBgroups\fR [\fIuser\fR]...
.fi
.SH 描述
.sp
.LP
\fBgroups\fR 命令在标准输出上输出您或另外指定的用户所属的组。每位用户都属于在 \fB/etc/passwd\fR 中指定的某个组,而且也可能属于在 \fB/etc/group\fR 中指定的其他组。请注意,\fB/etc/passwd\fR 指定组的数字 \fBID\fR (\fBgid\fR)。\fBgroups\fR 命令在输出中将 \fBgid\fR 转换为组名。
.SH 示例
.sp
.LP
输出采用以下形式:
.sp
.in +2
.nf
example% groups tester01 tester02
tester01 : staff
tester02 : staff
example%
.fi
.in -2
.sp
.SH 文件
.sp
.ne 2
.mk
.na
\fB\fB/etc/passwd\fR\fR
.ad
.RS 15n
.rt
.RE
.sp
.ne 2
.mk
.na
\fB\fB/etc/group\fR\fR
.ad
.RS 15n
.rt
.RE
.SH 属性
.sp
.LP
有关下列属性的说明,请参见 \fBattributes\fR(5):
.sp
.sp
.TS
tab() box;
cw(2.75i) |cw(2.75i)
lw(2.75i) |lw(2.75i)
.
属性类型属性值
_
可用性system/core-os
.TE
.SH 另请参见
.sp
.LP
\fBgroup\fR(4)、\fBpasswd\fR(4)、\fBattributes\fR(5)