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)
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)