groups.1

GROUPS(1)

GROUPS(1)

FreeBSD General Commands Manual

GROUPS(1)

groups

show group memberships

groups [user]

The groups- 实用程序已被 id(1) 实用程序淘汰,相当于 “id -Gn [user]” 。 建议将命令 “id -p” 用于正常的交互使用。

groups 实用程序显示您(或可选指定的用户)所属的组。

The groups utility exits 0 on success, and >0 if an error occurs.

显示 root 用户所属的组:

$ groups root wheel operator

id(1)

June 6, 1993

FreeBSD 13.1-RELEASE

最后更新于

FreeBSD 中文社区