Results 1 to 2 of 2
Hi All,
Is their any command to find the number of users or all user names in the system.
Not only current login user, i am looking all those who ...
- 04-27-2009 #1Just Joined!
- Join Date
- Aug 2008
- Posts
- 49
find number of users
Hi All,
Is their any command to find the number of users or all user names in the system.
Not only current login user, i am looking all those who have account in system.
I can get directly from /etc/passwd file by viewing, but is their any command to display all user names.
- 04-27-2009 #2
There isn't any command to list all users but as you already doing, use /etc/passwd file for that. You can check the /home folder too.
Code:cat /etc/passwd | cut -d ":" -f1
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First


Reply With Quote