Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
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
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.1k users

Browse Categories

...