Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

List all the users in linux

rajeshkumar created the topic: List all the users in linux
List all the users in Linux

cat /etc/passwd | cut -d”:” -f1
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

rajeshkumar replied the topic: Re: List all the users in linux
Some of other options are….

cat /etc/passwd | gawk ‘FS=”:” {print $1}’

ls /home

cat /etc/passwd | cut -d: -f 1,3,6 | grep “[5-9][0-9][0-9]” | grep “/home” | cut -d: -f1
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Rajesh Kumar
Follow me
Latest posts by Rajesh Kumar (see all)
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x