groups (1)

Quick Reference

Print group memberships for a user.

  • Print group memberships for the current user:

groups

  • Print group memberships for a specific user:

groups {{username}}

  • Print group memberships for a list of users:

groups {{username1}} {{username2}} {{username3}}

NAME

groups - print the groups a user is in

SYNOPSIS

groups [ OPTION]... [USERNAME]...

DESCRIPTION

Print group memberships for each USERNAME or, if no USERNAME is specified, for the current process (which may differ if the groups database has changed).
--help
display this help and exit
--version
output version information and exit

AUTHOR

Written by David MacKenzie and James Youngman.

REPORTING BUGS

GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
 
Report groups translation bugs to <https://translationproject.org/team/>

SEE ALSO

getent(1)
Full documentation at: <https://www.gnu.org/software/coreutils/groups>
 
or available locally via: info '(coreutils) groups invocation'

Information

Source
Coreutils
OS/version
GNU coreutils 8.29.13-0a854
Source updated
December 2, 2018
Page created
February 9, 2018
Page generated
December 2, 2018