Linux查看用户所属用户组

1.查看当前用户所属用户组

ho@ho-Inspiron-N3010:/home$ groups
ho adm cdrom sudo dip plugdev lpadmin lxd sambashare rvm

2.查看<user1>, <user2><user3>所属的组

语法:

groups <user1> <user2> <user3> 

示例:

ho@ho-Inspiron-N3010:/home$ groups ho postgres
ho : ho adm cdrom sudo dip plugdev lpadmin lxd sambashare rvm
postgres : postgres ssl-cert

原创文章,作者:huoxiaoqiang,如若转载,请注明出处:https://www.huoxiaoqiang.com/experience/linux/4894.html

发表评论

登录后才能评论