LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-23-2004, 02:17 PM   #1
mcbrihk
LQ Newbie
 
Registered: Mar 2004
Location: Alabama
Distribution: Fedora Core 1, Gentoo Linux
Posts: 1

Rep: Reputation: 0
when using the "last" command in linux what does crash and down mean


I was wondering what it meant when you see crash or down in the "last" output.







root pts/0 *.*.*.* Fri Mar 12 22:09 - crash (00:10)
root tty2 Fri Mar 12 21:47 - crash (00:32)
root tty1 Fri Mar 12 21:45 - crash (00:34)
reboot system boot 2.4.20 Fri Mar 12 21:44 (01:25)
root tty1 Fri Mar 12 21:42 - down (00:00)
 
Old 03-23-2004, 02:35 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
down means that you exited a shell gracefully
during a shutdown.
crash - I've never seen that one :)


Cheers,
Tink

Last edited by Tinkster; 03-23-2004 at 02:37 PM.
 
Old 03-12-2012, 08:34 PM   #3
vikki
Member
 
Registered: Jun 2009
Posts: 30

Rep: Reputation: 18
Last prints crash as logout time when there is no logout entry in the wtmp database for an user session.

Usually, in wtmp there are two entries for each user session. One for the login time and one for the logout time. When a system crashes, the second entry could be missing. So last supposes that the user was still logged on when the system crashed and prints crash as logout time.

To be more clear, that two "crash" line are only the two session that were active when the system crashed
 
1 members found this post helpful.
Old 03-12-2012, 08:40 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
I'm curious ... what made you unearth this 8 year old corpse of a thread?
 
Old 12-05-2012, 03:00 AM   #5
astanton
Member
 
Registered: Nov 2010
Distribution: Slackware64 -current
Posts: 82

Rep: Reputation: 5
Exclamation

Quote:
Originally Posted by Tinkster View Post
I'm curious ... what made you unearth this 8 year old corpse of a thread?
I certainly wouldn't characterize the thread as a "corpse" at all, considering that @vikki actually answered the OP's question for the part that remained unanswered.

It was a good answer too, and because the thread was still relevant and also because the information he provided was useful I was able to get the answer to a question I had when Google directed me here to this thread. I searched all over and had @vikki not provided his additional post to this thread I would have been brought to this thread and still not received the answer I was searching for.

BTW, thanks @vikki, and keep up the work as it is much appreciated
 
  


Reply



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
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 07:42 AM
"cp" command causes system crash PocaHontas Linux - General 2 09-17-2004 01:48 AM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 03:28 PM
'Last' command showing "Crash" for ftp users wizade Linux - Software 2 10-27-2003 12:48 PM
"segmentation error" when issuing "useradd" command through terminal with RH 9.0 kaihuang Linux - General 0 10-21-2003 11:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:42 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
Open Source Consulting | Domain Registration