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
Latest posts by Rajesh Kumar (see all)
- Best AI tools for Software Engineers - November 4, 2024
- Installing Jupyter: Get up and running on your computer - November 2, 2024
- An Introduction of SymOps by SymOps.com - October 30, 2024