Current logged in users

I have 2 systems. (1) RHEL5 and (2) winXP pro

from xpPRO putty i ssh into rhel5 : user root
from xpPRO i ftp into rhel5 : user abc123

when i run

#uptime

it only shows 1 user
when i do

#ps -u abc123

: it shows vsftpd deamon PID

is there a command that can be used to show all currently loggen in users via what ever means...ftp,ssh,telnet etc...

who or w show logged in users, one line per login session. So if one user has logged in three separate times it shows 3 lines for that user.

First of all, uptime doesn show how many users there are logged in. Second of all using ps command this way is useless.
To show what and how many users have logged in into the system use:

 
who

if you want to get user processes based on your ps command, I rather would use:

ps ux -U abc123

Good luck.

You can write the command who or w command will show the how many user are logged in the server.

#who -a

---------- Post updated at 11:37 PM ---------- Previous update was at 11:36 PM ----------

#who -a
shows all the users currently logged in
issue it as root.