How do I list groups in Linux?
Answer
List All Groups. To view all groups present on the system simply
open the /etc/group file
. Each line in this file represents information for one group. Another option is to use the getent command which displays entries from databases configured in /etc/nsswitch.
Answer
List All Groups. To view all groups present on the system simply
open the /etc/group file
. Each line in this file represents information for one group. Another option is to use the getent command which displays entries from databases configured in /etc/nsswitch.