Use the following command to find the total number of accounts on the system :
cat /etc/passwd | wc -lNote : 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
No comments:
Post a Comment