Back to the command reference

groups

UsersBeginner In simulator In real Linux

Show the groups a user is in

Name: groups

You can practise it right away in the simulator, and use it in real Linux mode too.

Description

groups lists the groups a user belongs to. Newly added groups appear in your session only after you log in again.

Syntax

groups [USER]...

Common options

USERShow another user’s groups

Examples

Related