The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 and shell scripting languages 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 03:02 AM
Users logged in through which NIC cburtgo IP Networking 5 04-28-2006 06:59 PM
How to know what users are logged in to account umen UNIX for Dummies Questions & Answers 2 02-28-2006 04:03 PM
All tcp/ip users are logged out Docboyeee IP Networking 2 03-13-2003 01:07 PM
Information about users who have logged. rooh UNIX for Dummies Questions & Answers 2 12-26-2001 06:42 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-02-2006
trichyselva trichyselva is offline
Registered User
  
 

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

in unix what is the syntax to find out how many users are currently logged in
  #2 (permalink)  
Old 05-02-2006
ranj@chn ranj@chn is offline Forum Advisor  
Playing with Ubuntu Now!
  
 

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

who - list of users currently logged in
  #3 (permalink)  
Old 05-02-2006
Ambikesh Ambikesh is offline
Registered User
  
 

Join Date: Feb 2006
Location: California
Posts: 45
You can also use finger
  #4 (permalink)  
Old 05-05-2006
thestevew thestevew is offline
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...
  #5 (permalink)  
Old 05-06-2006
tayyabq8's Avatar
tayyabq8 tayyabq8 is offline Forum Advisor  
Moderator
  
 

Join Date: Nov 2004
Location: Bahrain
Posts: 578
Code:
who | wc -l
Sponsored Links
Closed Thread

Bookmarks

Tags
load average, performance

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:48 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0