LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-06-2011, 09:21 AM   #1
aggrishabh
Member
 
Registered: Nov 2010
Posts: 87

Rep: Reputation: 1
Lightbulb need simple solution of who; who|wc -l


Hi,

command who|wc -l gives me only the total number of users currently logged on.

what if i need both on the display(users+number)
one possible solution is
who; who|wc -l

please suggest me better solution.
 
Old 01-06-2011, 09:34 AM   #2
aggrishabh
Member
 
Registered: Nov 2010
Posts: 87

Original Poster
Rep: Reputation: 1
one more solution is who |tee /dev/tty |wc -l
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for simple backup/mirror solution agentchange Linux - Software 5 10-31-2006 01:52 AM
A simple DNS solution mangueJOE Linux - Networking 10 04-09-2006 01:45 AM
simple autofs solution friendly_guy Slackware 10 07-13-2005 07:40 PM
Probably a simple solution 2 a tar question Cruger Programming 6 03-23-2004 10:32 AM
I need a reliable, simple backup solution kkempter Linux - Software 1 02-05-2003 01:31 PM


All times are GMT -5. The time now is 06:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration