Take the 2-minute tour ×

How can I see all the members of a group in Linux?

share|improve this question
add comment

2 Answers

up vote 15 down vote accepted

Use the commands:

getent group groupname


getent group groupname | awk -F: '{print $4}'
share|improve this answer
add comment

Just FYI, this answer appears to be incomplete and may miss certain users.


share|improve this answer
add comment

Your Answer


