Computing.Net > Forums > Unix > how many users currently logged in

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

how many users currently logged in

Reply to Message Icon

Name: trichyselva
Date: May 2, 2006 at 05:48:47 Pacific
OS: windows xp
CPU/Ram: p4
Product: pentium
Comment:

what is the syntax to find how many users are currently logged in



Sponsored Link
Ads by Google

Response Number 1
Name: nails
Date: May 2, 2006 at 19:44:46 Pacific
Reply:

I'm assuming you're asking for Unix?

This simple command counts the number of users logged in:

who |wc -l

If a user logged in more than once only counts for one login,, use this command:

who|cut -d " " -f1 | sort -u|wc -l


-1
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: how many users currently logged in

Keeping useres from logging in www.computing.net/answers/unix/keeping-useres-from-logging-in/7389.html

scrip help on assignment www.computing.net/answers/unix/scrip-help-on-assignment/5580.html

Command Script www.computing.net/answers/unix/command-script/4337.html