Hi
Im new to linux. I am using red hat, at the terminal Im looking for the command that lists all the groups and users. I know it is in the /etc/group.
Any help would be helpful
how to list groups and users
Moderator: General Moderators
If your users live in /etc/passwd and groups in /etc/group:
If you have configured pam/nss to use different sources (fe: ldap) you'll need something different 
Code: Select all
cut -f1 -d: /etc/passwd
cut -f1 -d: /etc/group