The groups command
print the groups a user is in 3 examples from the lessons of the IVski Linux Playground — try them in the terminal next to them.
Examples
groupsSee your groups
groups usernameGroups for specific user
groups ana