groups

List group memberships

low risk

interactive breakdown — edit the command and press Explain
$ 
What it does

Prints the groups of a user. See the flags and examples below, and run `man groups` for the full reference.

Examples
groups alicealice’s groups · explain & risk-check →
Related
id usermod
Open the full explainer →More in System & Processes

Reference text is hand-written and may be incomplete — check man groups for your version. Test destructive commands on a non-production system first.