how to find the number of users
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 |
Do a man on finger and who
#man finger #man who This will give all the options that you can use with these commands try them: # finger # who finger gives a lot more information, bu can be a security risk so could be disabled on your system. It seraches for files such as .plan, ..forward and .project to supply some of the personal information w is another one that you might want to check out # w BR G |
Quote:
Users who are not logged in will not be got by these commands Code:
cat /etc/passwd | awk -F ":" '{print $1}' |
Code:
cat /etc/passwd | awk -F ":" '{if($3>=500){print $1}}' I suppose only "nfsnobody" is the user u don't want |
All times are GMT -5. The time now is 02:31 AM. |