The commands that can display the groups of which a user is a member are groups and id. The groups command will print the names of all primary and secondary groups that a user belongs to. If no user name is specified, it will print the groups for the current user. The id command will print various information about a user’s identity, such as user ID (UID), group ID (GID), primary group name, secondary group names, etc. References:https://documentation.suse.com/sles/15-SP3/html/SLES-all/sec-user-group.html#sec-user-group-display
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit