Beginner
Package: coreutils
id
Show a user's UID, GID and group memberships.
Syntax
id [username]
Description
id prints the numeric and named user ID, primary group and every supplementary group a user belongs to, which is the quickest way to confirm group membership actually took effect.
Examples
id
Show identity information for the current user
id alice
Show identity information for another user
id -nG alice
List just the group names a user belongs to
Applies to
Put it into practice