How to list all groups in CentOS

Toggle fullscreen Fullscreen button

Sharing buttons:

are there in this video I'm gonna

explain how you can list all the groups

available in the linux system for that

open the shell terminal and then type

this command cat / ET c / group so this

is the file where the group information

is stored so there is one line for each

group as you can see this many groups

are available in my system so if you

really just want to view the group name

instead of all these extra information

or of group IDs what you can do is you

can cut that particular now to put like

delimited by the colon and then if you

want to see the first field the still

enter using the cut command you can get

only the list of all these groups and

you can just number the output using

this command NL so there are 68 groups

in my system if you liked this video hit

like button