Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-02-2009, 06:05 AM   #1
Registered: Dec 2005
Location: Punjab (INDIA)
Distribution: Arch
Posts: 211

Rep: Reputation: 30
Understanding "who" command

There is something strange with who command. when I run it on my machine it shows me all logins of X-Terminals but when I run it on my friend's UBUNTU machine, it shows only the tty login, nothing of the X-terminals:

[saurabh@cobra ~]$ who
saurabh  tty1         Jan  2 13:05
saurabh  :0           Jan  2 10:08
saurabh  pts/1        Jan  2 10:09 (:0.0)
saurabh  pts/2        Jan  2 10:10 (:0.0)
saurabh  pts/3        Jan  2 10:10 (:0.0)
saurabh  pts/4        Jan  2 11:12 (:0.0)
saurabh  pts/5        Jan  2 11:12 (:0.0)
saurabh  pts/6        Jan  2 16:39 (:0.0)
saurabh  pts/7        Jan  2 17:21 (dune)
[saurabh@cobra ~]$
First login is the original tty login and the pts logins are the X-terminals that my friend have opened on CentOS 4. The last one pts/7 is the SSH I have done into that machine. Now see the output from Ubuntu machine:

sumit@sumit:~$ who
sumit    :0           2009-01-02 10:10
sumit    pts/2        2009-01-02 17:25 (
See ? first one is the tty login of my friend and 2nd one is my SSH login and there is no information of the X-terminals he has opened. He was using 2 gnome-terminal(s) when I ran this command. How can I get that information of the opened X-Terminals on his machine ?

I want to use that information on so that I can write onto his terminal and start chatting with him. That way we do not need any messenger software
Old 01-02-2009, 07:33 AM   #2
Registered: Mar 2007
Location: Windhoek, Namibia
Distribution: Slackware, Kubuntu, Mandriva & PCLinuxOS
Posts: 80

Rep: Reputation: 18
I have noticed this in my case as well. My guess is that when you do "who" on the local machine one sees your terminal sessions, and when done on the remote machine it shows the tty logins. Could you ask your friend to do a "who" on his site, then we see what he gets in comparison to your "who" on his machine --- sounds interesting for my newbieness.



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
Command "mail" returns "panic: temporary file seek" kenneho Linux - Software 5 12-23-2008 03:27 AM
Feeding the output of "diff" or "cat" command to dpkg --purge kushalkoolwal Debian 9 06-19-2008 07:27 AM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
Understanding the "Top" Command gauravdamri Linux - Newbie 1 02-07-2006 03:25 PM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 03:28 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:25 AM.

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