NXP

查看Linux某用户属于哪个组

2019-07-12 12:40发布

id user
groups user 举栗子:
[root@localhost tmp]# groups xp
xp : xp
[root@localhost tmp]# groups root
root : root bin daemon sys adm disk wheel
[root@localhost tmp]# id xp
uid=500(xp) gid=500(xp) groups=500(xp)