LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 08-01-2006, 02:52 AM   #1
AmphetaminePhreak
Member
 
Registered: Jul 2006
Location: kinda transient right now. Utah is Home, staying in Ohio
Distribution: Mandrake 9.1/Windows XP
Posts: 46

Rep: Reputation: 15
quick question about the who command


typing who, for me, returns:

[matt@cpe-24-210-224-245 matt]$ who
matt :0 Jul 31 03:47
matt pts/0 Jul 31 03:48
matt pts/1 Jul 31 03:50

why is there 3 of me?
 
Old 08-01-2006, 03:09 AM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 49
1 X session and 2 terminals
 
Old 08-01-2006, 03:16 AM   #3
AmphetaminePhreak
Member
 
Registered: Jul 2006
Location: kinda transient right now. Utah is Home, staying in Ohio
Distribution: Mandrake 9.1/Windows XP
Posts: 46

Original Poster
Rep: Reputation: 15
how can i know what terminals those are and what's using them?

Last edited by AmphetaminePhreak; 08-01-2006 at 03:17 AM.
 
Old 08-01-2006, 03:20 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
You will see a pts entry for each konsole you open in x windows.
Type in "who" in one konsole, start up another konsole and re-enter the who command. There will be another entry.
 
Old 08-01-2006, 04:43 AM   #5
AmphetaminePhreak
Member
 
Registered: Jul 2006
Location: kinda transient right now. Utah is Home, staying in Ohio
Distribution: Mandrake 9.1/Windows XP
Posts: 46

Original Poster
Rep: Reputation: 15
ok so then i have one identity for x
one for the terminal used for the command

so what terminal is my 3rd identity using?

Last edited by AmphetaminePhreak; 08-01-2006 at 04:51 AM.
 
Old 08-01-2006, 04:52 AM   #6
taux
LQ Newbie
 
Registered: Dec 2005
Distribution: Ubuntu
Posts: 5

Rep: Reputation: 0
You must have two terminals open (such like gnome-terminal)
 
Old 08-01-2006, 04:54 AM   #7
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 49
It could be many things. Do you have another shell open anywhere? It could be an SSH login from somewhere else, or shell opened locally. My "who" command lists where it's logged in from in the 4th column if it's remote.
 
Old 08-01-2006, 05:07 AM   #8
spirit receiver
Member
 
Registered: May 2006
Location: Frankfurt, Germany
Distribution: SUSE 10.2
Posts: 424

Rep: Reputation: 33
Some of them will be spawned automatically at startup and running in the background. For example, here I've got:
Code:
who --all
                        2006-08-01 09:49               916 id=si    term=0 exit=0
           Runlevel 5   2006-08-01 09:49                   last=S
                        2006-08-01 09:50              2401 id=l5    term=0 exit=0
ada      ? :0           2006-08-01 09:50   ?          4042 (console)
LOGIN      tty1         2006-08-01 09:50              4678 id=1
LOGIN      tty2         2006-08-01 09:50              4679 id=2
LOGIN      tty3         2006-08-01 09:50              4680 id=3
LOGIN      tty4         2006-08-01 09:50              4681 id=4
LOGIN      tty5         2006-08-01 09:50              4682 id=5
LOGIN      tty6         2006-08-01 09:50              4683 id=6
ada      + pts/0        2006-08-01 09:50 02:08        4661
ada      - pts/2        2006-08-01 11:57   .          8887
           pts/3        2006-08-01 11:56              8818 id=/3    term=0 exit=0
One column contains the process id, and from "ps -ef" I learn:
Code:
ada       4042  3413  0 09:50 ?        00:00:00 /bin/sh /opt/kde3/bin/startkde
ada       4661     1  0 09:50 ?        00:00:01 kded --new-startup
 
  


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
quick command to display all hardware? carl0ski Linux - General 5 07-14-2005 08:30 AM
quick mkinitrd command help imagineaxion Mandriva 2 10-24-2004 02:13 AM
Quick Q: Command to print line number X? KneeLess Linux - Software 1 05-27-2004 07:49 PM
quick restart-X command?? snwright Linux - Software 11 05-12-2004 04:14 PM
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 07:19 AM


All times are GMT -5. The time now is 12:00 PM.

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