Iwant to list only users names in a Linux system byusing the /etc/passwd file.

Re: List Only Usernames 80 80

This page lists several options:


One of them is:

$ awk -F':' '{ print $1}' /etc/passwd
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.