groups usage is very simple, it is to query which user or users group user belongs;
语法格式: groups 用户名
Example:
[beinan@localhost ~]$ groups beinan
注:查询beinan所归属的用户组;
beinan : beinan
注:beinan 是beinan用户组下的成员;
[beinan@localhost ~]$ groups linuxsir
注:查询linuxsir用户所归属的用户组;
linuxsir : linuxsir root beinan
注:linuxsir用户是linuxsir用户组、beinan用户组、root用户组成员;
groups mainly to query the user name of the user group belongs, as opposed to the best and the id command; so these two tools have to understand
Related Profiles
/etc/passwd
/etc/shadow
/etc/gshadow
/etc/group