Show the Members of a Group in Linux
Q. How can I know who are the users in sudo group for Ubuntu?
A. There is a command for that, but it is usually not installed by default. It is called
members as one might imagine. If you are using Debian or Ubuntu install it with
sudo apt-get install members
Then just invoque it with the name of the group.
You can of course use it with any other group name:
If you do not want to install the
members command you can always use
grep or, just
sudo cat /etc/group | grep sudo
grep sudo /etc/group