List groups a user belongs too

Last modified: 
Thursday, October 15th, 2015
Topics: 
Linuxsysadmin

Use the id command to list any user's uid, gid, and all groups they are in.

id somebody
uid=507(somebody) gid=507(somebody) groups=507(somebody),500(somegroup)


The operator of this site makes no claims, promises, or guarantees of the accuracy, completeness, originality, uniqueness, or even general adequacy of the contents herein and expressly disclaims liability for errors and omissions in the contents of this website.