Show the groups to which a user belongs.
groups [username]
None
The groups command displays the names of groups to which a user belongs. If you do not specify a user name, the command displays your groups.