Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 374 Bytes

list-all-members-of-a-group.md

File metadata and controls

21 lines (14 loc) · 374 Bytes

List all members of a Group

To list members of a group

grep '{{groupName}}' /etc/group

To add some color

grep -i --color '{{groupName}}' /etc/group

To list only member names of a group

awk -F':' '/{{groupName}}/{print $4}' /etc/group

Found on CyberCiti