groups


groups

Purpose

Show the groups to which a user belongs.

Syntax

groups [username]

Options

None

Description

The groups command displays the names of groups to which a user belongs. If you do not specify a user name, the command displays your groups.