LinuxQuestions.org
Register a domain and help support LQ
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-11-2006, 07:52 PM   #1
Lordandmaker
Member
 
Registered: Sep 2005
Location: London, UK
Distribution: Debian
Posts: 258

Rep: Reputation: 38
repeat entries in 'who' answer


If i say 'who' to console, i get the response:
Code:
avi      :0           Jan 11 12:43
avi      pts/0        Jan 11 12:43
avi      pts/1        Jan 12 00:04
avi      pts/3        Jan 11 13:24
(my username is 'avi').

Is it supposed to come up four times, and if so, why? If not, why is it, and how do i fix it?
 
Old 01-11-2006, 08:02 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
It has to do with terminals--look at "man pts" for some leads.

(You guessed correctly--I don't know the answer.... )

General rule: if the machine says something like xyz, chances are good that either "man xyz", or "info xyz" will help translate.
If not, try "xyz linux" on Google
 
Old 01-11-2006, 08:09 PM   #3
Lordandmaker
Member
 
Registered: Sep 2005
Location: London, UK
Distribution: Debian
Posts: 258

Original Poster
Rep: Reputation: 38
'Man pts' and 'info pts' return nothing. 'man who' just gives the switches.

I know the info comes from the file /var/run/utmp. The contents of this are:
Code:
==> append : to filename to view the  data source
reboot
runlevel
tty1
LOGIN
tty2
LOGIN
tty3
LOGIN
tty4
LOGIN
tty5
LOGIN
tty6
LOGIN
pts/0
pts/1
pts/2
pts/3
~
~
And the tildes keep going.

If i append the colon, i get something that's very non-human readable.

Through Google i find that 'pts' is a Pseudo Terminal Session, and they're used for XTerm sessions. But i can't find reason for four....

I've got four desktops, which was my first thought, but i figured this would be at GUI level, and not affect the logins details.
 
Old 01-11-2006, 08:14 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
It normally reports each of your active logins. How many console windows, terminals and/or ssh sessions did you have active when you ran this?

You can also run the `last` command to see the listing of the last logged in users.
 
Old 01-11-2006, 08:20 PM   #5
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Quote:
avi :0 Jan 11 12:43
avi pts/0 Jan 11 12:43
avi pts/1 Jan 12 00:04
avi pts/3 Jan 11 13:24
This is because you are logged in on several different virtual consoles. To see what processes are attached to each, you could run:
Code:
$  ps aux | grep "pts/"
I do not see this line:
Code:
avi      :0           Jan 11 12:43
on my own system, but I do not use a display manager. I suspect that you are using xdm,kdm or gdm, and that is where this login is coming from.
 
  


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
Key repeat problem sweetnsourbkr Slackware 2 11-14-2005 09:57 AM
keyboard repeat rate joshknape Mandriva 1 11-03-2005 08:46 PM
amp repeat? slinky2004 Linux - Software 0 09-29-2005 05:53 PM
Repeat questions DaOne Slackware 13 06-24-2003 11:00 AM
Repeat KMail problem rogleale Linux - Newbie 1 07-07-2002 10:53 AM


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