List members of Unix group
11 March 2022 (Updated 3 August 2025)
getent group <group>
For example, you can list members in the sudo group with:
getent group sudo
This would output something like:
sudo:x:37:sajad
Tagged:
Unix groups
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment