Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Debian Linux Help
Reload this Page Linux "last" command
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Debian Linux Help Discussions related to Debian GNU/Linux.

Reply
 
Thread Tools Display Modes
Old 08-25-2007   #1 (permalink)
StarGhost
Just Joined!
 
Join Date: Nov 2006
Posts: 13
Linux "last" command

Hello,

I'm a linux newbie, and would like to ask for a proper explanation about what the last command gives.

Here is the sample of what I got:
Code:
user1   pts/2        10.15.3.4           Fri Aug 24 18:21 - 18:21  (00:00)
user2   pts/1                                Fri Aug 24 18:11 - 18:55  (00:44)
user3   pts/1        :0.0                  Thu Aug  2 15:41 - down   (02:41)
root    tty1                                 Wed Aug  1 19:09 - down   (23:14)
user3   :0                                    Wed Aug  1 19:02 - down   (23:21)
I guess each of the above logged sessions represents different way of logging in the system, so if anyone could explain for me these differences, it would be very helpful for my knowledge. The system is current using Debian 4.0, kernel 2.6.18-5-686.

Thank you for your consideration.

SG.
StarGhost is offline   Reply With Quote
Old 08-25-2007   #2 (permalink)
daark.child
Linux Guru
 
daark.child's Avatar
 
Join Date: Apr 2006
Location: South Yorks, UK
Posts: 3,387
The manual explains what last does i.e. shows a listing of last logged in users. ttyX are virtual terminals (the CLI interfaces that you log into if you boot into text mode or do CTRL-ALT-Fn), pts/X are pseudo terminals (i.e. CLI sessions started started inside a GUI session e.g. by running xterm, konsole etc). The :0 means that a user logged into an X session at display :0.
daark.child is offline   Reply With Quote
Old 08-25-2007   #3 (permalink)
StarGhost
Just Joined!
 
Join Date: Nov 2006
Posts: 13
Thank you daark.child, but there is one point.

When looking at the line 2, I saw that user logged in via pseudo terminals. If I use ssh, then it would display my remote IP address (or host name). If I log in to GUI, and then open a terminal, it would display something like :0.0. But in this case it does not display anything.

So could you please describe for me a little bit more about this situation.

SG.
StarGhost is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Ubuntu on a Panicked Mac PimpyThePenguin Installation 4 06-25-2007 05:16 AM
What does it mean? linix SuSE Linux Help 2 03-10-2006 06:39 PM
Novell To Aquire SuSE linux jasonlambert LinuxForums.org - Articles 5 11-06-2003 05:54 AM




All times are GMT. The time now is 05:47 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0