LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-27-2012, 08:30 AM   #1
dev@linuxquestion#
LQ Newbie
 
Registered: Feb 2012
Posts: 19

Rep: Reputation: Disabled
Question problem with who command


who command only shows the 5 users while i m having 20 users logged in why XRDP remote dekstop
so how can i find the total users who are logged in
below is the output of who and w

[root@sDirectserver ~]# w
17:36:05 up 7:22, 5 users, load average: 0.39, 0.77, 0.91
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root tty1 :0 10:14 1:52m 4:54 4:54 /usr/bin/Xorg :
root pts/0 :0.0 10:15 1:10 0.03s 0.03s bash
root pts/1 :0.0 17:34 0.00s 0.01s 0.01s w
prachis pts/3 :105.0 14:15 3:20m 0.00s 0.00s /bin/bash
vikass pts/4 :110.0 14:53 2:42m 0.00s 0.00s /bin/bash


[root@sDirectserver ~]# who
root tty1 2012-03-27 10:14 (:0)
root pts/0 2012-03-27 10:15 (:0.0)
root pts/1 2012-03-27 17:34 (:0.0)
prachis pts/3 2012-03-27 14:15 (:105.0)
vikass pts/4 2012-03-27 14:53 (:110.0)
[root@sDirectserver ~]#
 
Old 03-27-2012, 08:49 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,478

Rep: Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020
Have you tried
Code:
who -a
Hope this helps some.
 
Old 03-27-2012, 08:51 AM   #3
Antares.Liu
LQ Newbie
 
Registered: Mar 2012
Distribution: Fedora 16 XFCE
Posts: 19

Rep: Reputation: 3
Quote:
Originally Posted by dev@linuxquestion# View Post
who command only shows the 5 users while i m having 20 users logged in why XRDP remote dekstop
so how can i find the total users who are logged in
below is the output of who and w

[root@sDirectserver ~]# w
17:36:05 up 7:22, 5 users, load average: 0.39, 0.77, 0.91
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root tty1 :0 10:14 1:52m 4:54 4:54 /usr/bin/Xorg :
root pts/0 :0.0 10:15 1:10 0.03s 0.03s bash
root pts/1 :0.0 17:34 0.00s 0.01s 0.01s w
prachis pts/3 :105.0 14:15 3:20m 0.00s 0.00s /bin/bash
vikass pts/4 :110.0 14:53 2:42m 0.00s 0.00s /bin/bash


[root@sDirectserver ~]# who
root tty1 2012-03-27 10:14 (:0)
root pts/0 2012-03-27 10:15 (:0.0)
root pts/1 2012-03-27 17:34 (:0.0)
prachis pts/3 2012-03-27 14:15 (:105.0)
vikass pts/4 2012-03-27 14:53 (:110.0)
[root@sDirectserver ~]#

The command 'who' has a opt '-q' to show all login names and number of users logged on. Maybe you can try it. You can use command 'last' to show listing of last logged in users.
 
Old 03-27-2012, 08:53 AM   #4
dev@linuxquestion#
LQ Newbie
 
Registered: Feb 2012
Posts: 19

Original Poster
Rep: Reputation: Disabled
Problem with who command

THanks tronayne

It is still shows the same no of users a already tried who -a but didnt works
 
  


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
problem with auditreduce command and praudit command preetishetty Linux - Security 0 12-03-2007 09:24 AM
Problem with at command xav.vijay Linux - Newbie 7 08-05-2007 04:32 AM
at Command Problem BBPS Linux - Software 2 09-06-2006 06:23 AM
problem with dd command ? MaaSTaaR Linux - General 5 06-25-2006 08:50 AM
problem in cp command ksriram03 Linux - Newbie 2 03-15-2006 12:12 PM


All times are GMT -5. The time now is 10:28 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