check the members of a group
The group information, including members, is stored in the /etc/group file.
grep '^sudo:.*$' /etc/group | cut -d: -f4
# or
getent group sudo
The group information, including members, is stored in the /etc/group file.
grep '^sudo:.*$' /etc/group | cut -d: -f4
# or
getent group sudo