All rights reserved, please indicate the source when citing
groups : List Groups
This is a command related to account and group management. The command groups [USERNAME] will list the groups associated with an account.
Here are commonly used options for the groups command:
- -a: Display all groups, including supplementary groups..
- -g: Display only the group ID for each group.
- -n: Do not display the group names.
- -o: Display only the primary group for each user.
Example:
$ groups ←Lists the groups for the logged-in user
john quality training
$ groups alice ← Lists the groups for the "alice" account
alice qulity
|
For more information about the groups command, refer to the provided link.