• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to find the number of users  RSS feed

 
pavan bellari
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can u tell how to find the number of users and their login names from root.
suppose if i issue ls /home. it is listing some other names such as lost+found, quota.user, quota.group etc along with the user names.
so can u tell how to find exactly the no of users in the system and their login names
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"wc -l /etc/passwd" will count the local users. If you're using NIS, then you might do something like "ypcat passwd | wc -l".
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!