How to find the number of user accounts via shell ?
admin | Feb 15, 2010 | Comments 0
Issue :
There is no control panel installed on the server. So, how can the total number of user accounts on the system be determined?
Solution:
Use the following command to find the total number of accounts on the system :
cat /etc/passwd | wc -l
Note : This will also include system accounts like root, mail etc.
To list all the accounts on the system then use the following :
cat /etc/passwd | cut -d”:” -f1
Filed Under: Quick fixes • Technical
About the Author: InstaCarma is a provider of Enterprise Class Solutions for the Hosting Industry

1800 810 6547