User and Group Management

groups

Shows group memberships.

groups prints the groups a user belongs to, which helps explain permission access.

Syntax
groups [user]

Arguments explained

  • Options adjust output or behavior.
  • Arguments name the files, services, hosts, or values the command should work with.

Common examples

Show your groups
groups

Lists groups for the current user.

Show another user's groups
groups www-data

Displays groups for the service account.

groups Command
FieldDetails
Commandgroups
CategoryUser and Group Management
Primary useShows group memberships.
Syntaxgroups [user]