Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (9.5k points)

I want to create an administrator web page that has the list of Linux accounts’ group names. Can anyone tell me if there is a simple way other than /etc/group which parses the entire readable file? 

1 Answer

0 votes
by (19.7k points)

Use this command below to list all local groups: 

cut -d: -f1 /etc/group | sort

 If you want to learn more about Linuxthen go through this Linux tutorial by Intellipaat for more insights. 

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...