# of users in linux
Hi all,
could anybody tell me how to check the number of users on a linux(RHEL5), as well as the brief statistics of every user. Thank you in advance, Kapil Bajpai. |
Use the who command. See:
man who --------------------- Steve Stites |
You might type "w"
man w |
# of usres in linux
hi all,
thank you for your precious advice.... but what i wish to know is that whether we have any such measure/command to see all users on a linux machine, like we can see the current active user with 'man' or 'w' command. Thank you Kapil Bajpai. |
Quote:
------------------- Steve Stites |
# of user in Linux
Hi All,
Even Who -q shows only the current active user. I am interested in similar information off all the user in the same machine. For instance, I have 4 users on my RHEL5 machine, and i wish to know their brief statistics like 'w' command gives for the active user only. I think i am clear now.... Thank you, Kapil Bajpai. |
READ the output of
Code:
su - ( or sudo) Quote:
|
The commmands "w", "who" and "users" all deal with current users as opposed to "All".
if you do "ls /home" you should see a list of all users on the system. Just did "apropos user" and found a Command "users-admin" that might help. |
Yea "users-admin" gets it. Doesn't show current activity like "W" but shows info on real name etc - allows creation deletion and modification of user accounts
|
# of users on linux
Hi John,
thanks for cool advice...will try this on monday, as linux machine is at my workplace..it seems that it will sove my query... thanks again.. Kapil. Quote:
|
You're welcome. Good luck with it!
|
cat /ect/passwd will also print an ENTIRE list of users..... this includes all the deamon ones and things like nobody
|
thanks
Hi There,
your advice worked, now i can see all users and will try to get their details as well. I have another query, and i hope you can help me.."How can i copy a file from a windows machine into the RHEL5 machine? Thank You in advance, Kapil. |
>> "How can i copy a file from a windows machine into the RHEL5 machine?
install putty on the windows box, and use "psftp" or you can install ftp (yum install vsftpd; service vsftpd start) on the linux box, and from windows box, do ftp. |
pscp is easier
|
All times are GMT -5. The time now is 05:32 PM. |