List members of a group in Linux

In CentOS Linux, the group information is kept in the /etc/group file.

For example to find the users in the wheel group, use:

root@web [~]# cat /etc/group | grep wheel
wheel:x:11:administrator
root@web [~]#

To see the full content of the /etc/group, use:

root@web [~]# cat /etc/group
Share this post: