List Only Usernames

Gabriel Turqos

Active Member
Joined
Mar 11, 2019
Messages
17
Iwant to list only users names in a Linux system byusing the /etc/passwd file.
 


awk -F: '{ print $1}' /etc/passwd will give you just usernames or you can do something similar with cut
 


Solution
Back
Top