Command
groups
Explanation
groups shows the groups that a user belongs to.
Examples
Show current user groups
groups
Show specific user groups
groups username
groups
groups shows the groups that a user belongs to.
Show current user groups
groups
Show specific user groups
groups username