Current logged in users | Unix Linux Forums | Red Hat

  Go Back    

Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

Current logged in users

Red Hat

Closed Thread    
Thread Tools Search this Thread Display Modes
Old 11-24-2009
dplinux dplinux is offline
Registered User
Join Date: May 2009
Last Activity: 22 March 2010, 11:43 AM EDT
Location: Irving,TX
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
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

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...
Sponsored Links
Old 11-24-2009
jim mcnamara jim mcnamara is offline Forum Staff  
Join Date: Feb 2004
Last Activity: 1 March 2015, 9:19 AM EST
Location: NM
Posts: 10,389
Thanks: 322
Thanked 847 Times in 786 Posts
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.
Sponsored Links
Old 12-04-2009
_val_ _val_ is offline
Registered User
Join Date: Nov 2009
Last Activity: 27 July 2011, 12:31 PM EDT
Location: The Netherlands
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
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:


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

ps ux -U abc123

Good luck.
Old 12-06-2009
Inamadugu Inamadugu is offline
Registered User
Join Date: Jul 2009
Last Activity: 19 June 2014, 1:11 AM EDT
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
You can write the command who or w command will show the how many user are logged in the server.
Sponsored Links
Old 12-06-2009
gaurav1086's Avatar
gaurav1086 gaurav1086 is offline
Registered User
Join Date: Nov 2009
Last Activity: 26 January 2014, 1:39 PM EST
Location: india
Posts: 298
Thanks: 3
Thanked 4 Times in 4 Posts
#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.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How many users are logged in? chris_rabz UNIX for Dummies Questions & Answers 0 04-29-2009 07:23 AM
Users Not Logged in warlock129 Shell Programming and Scripting 12 03-30-2009 12:07 PM
logged out users roshni Post Here to Contact Site Administrators and Moderators 1 07-06-2007 04:02 AM
Users logged in through which NIC cburtgo IP Networking 5 04-28-2006 07:59 PM
All tcp/ip users are logged out Docboyeee IP Networking 2 03-13-2003 01:07 PM

All times are GMT -4. The time now is 03:18 PM.