How to Check the Number of Created User Account on Linux

Question :
How to check the number of created user on linux server?

Answer :

To check the created user on your linux machine, simply run the following command. This will includes the number of user for installed services such as apache, mysql or squid which will be installed automatically in order to run the particular services.

[root@centos62 ~]# cat /etc/passwd | wc -l

This command has been tested on linux centOS 6.2 server and may working on Redhat Enterprise linux and othr CentOS version. The result shows that there are 38 users on this linux CentOS 6.2 server.

Leave a Reply

Your email address will not be published. Required fields are marked *