Buy default members command display all group members on one line. Open the Terminal application and type the following command to display members of ‘webmaster’ group: $ members webmaster Sample outputs:
In this example, six users are output: webadmin, raj, vivek, archana, sai, and sayali. You can count total users in a group called members using wc command: $ members webmaster | wc -w Sample outputs:
The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.