The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
logged out users roshni Post Here to Contact Site Administrators and Moderators 1 07-06-2007 12:02 AM
Users logged in through which NIC cburtgo IP Networking 5 04-28-2006 03:59 PM
How to know what users are logged in to account umen UNIX for Dummies Questions & Answers 2 02-28-2006 12:03 PM
All tcp/ip users are logged out Docboyeee IP Networking 2 03-13-2003 09:07 AM
Information about users who have logged. rooh UNIX for Dummies Questions & Answers 2 12-26-2001 02:42 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-02-2006
Registered User
 

Join Date: Feb 2006
Posts: 40
how many users logged

in unix what is the syntax to find out how many users are currently logged in
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-02-2006
Playing with Ubuntu Now!
 

Join Date: Oct 2005
Location: Chennai
Posts: 364
try who

who - list of users currently logged in
Reply With Quote
  #3 (permalink)  
Old 05-02-2006
Registered User
 

Join Date: Feb 2006
Location: California
Posts: 45
You can also use finger
Reply With Quote
  #4 (permalink)  
Old 05-05-2006
Registered User
 

Join Date: Mar 2006
Location: South Yorkshire, UK
Posts: 114
"uptime" will give you a summary showing the number of users

01:52PM up 121 days, 14:10, 4 users, load average: 0.23, 0.23, 0.23

"w" gives you the summary and list of users logged on

01:53PM up 121 days, 14:11, 4 users, load average: 0.17, 0.21, 0.22
User tty login@ idle JCPU PCPU what
tom tty0 06:09AM 2:23 5 0 /bin/ksh
gerry tty0 07:10AM 1:11 1.54 0 /bin/ksh
opps tty0 06:09AM 2:23 5 0 /bin/ksh
...

so many ways...
Reply With Quote
  #5 (permalink)  
Old 05-05-2006
tayyabq8's Avatar
UNIX Hobbyist
 

Join Date: Nov 2004
Location: /World/Asia/MiddleEast/Kuwait/Salmiya
Posts: 513
Code:
who | wc -l
Reply With Quote
Google UNIX.COM
Reply

Tags
load average, performance

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:00 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0