check what groups user is part of linux code example Example: check which users are part of a group linux grep 'group-name-here' /etc/group