manpagez: man pages & more
info coreutils
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

20.4 groups: Print group names a user is in

groups prints the names of the primary and any supplementary groups for each given username, or the current process if no names are given. If more than one name is given, the name of each user is printed before the list of that user's groups. Synopsis:

groups [username]…

The group lists are equivalent to the output of the command ‘id -Gn’.

The only options are ‘--help’ and ‘--version’. See section Common options.

An exit status of zero indicates success, and a nonzero value indicates failure.

© 2000-2017
Individual documents may contain additional copyright information.