LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-30-2006, 04:22 AM   #1
smart girl
LQ Newbie
 
Registered: Mar 2006
Posts: 6

Rep: Reputation: 0
linux command


hi all

I am newbie in linux and I've just started learning how to use it.

actually I hadn't installed linux on my Pc yet, instead I used knoppix std which seems to operate like lenux.

the problem of using knoppix that it does not perform some commands as they must be.

for example:
the last command, if we use it with -d option it must display the IP address but it does not do so.

another problem is that I an required to write a program to do some operations in the date of login displayed in last command and since I don't know how data are displayed using last command I will not be able to write that program.

what I need is if any one of you could show me a screen shot of text to the result of last command with some options and with out.
 
Old 03-30-2006, 04:42 AM   #2
ReefShark
Member
 
Registered: Oct 2003
Location: the Netherlands
Distribution: Arch Linux, Ubuntu server
Posts: 145

Rep: Reputation: 15
last
Code:
sharky   :0                            Thu Mar 30 08:10   still logged in   
reboot   system boot  2.6.15-gentoo-r1 Thu Mar 30 10:08          (02:29)    
sharky   :0                            Wed Mar 29 08:16 - down   (07:46)    
reboot   system boot  2.6.15-gentoo-r1 Wed Mar 29 10:14          (05:48)    
sharky   :0                            Wed Mar 29 10:10 - down   (00:01)    
reboot   system boot  2.6.15-gentoo-r1 Wed Mar 29 10:09          (00:03)
last -d
Code:
sharky   :0           255.255.255.255  Thu Mar 30 08:10   still logged in   
reboot   system boot  0.0.0.0          Thu Mar 30 10:08          (02:29)    
sharky   :0           255.255.255.255  Wed Mar 29 08:16 - down   (07:46)    
reboot   system boot  0.0.0.0          Wed Mar 29 10:14          (05:48)    
sharky   :0           255.255.255.255  Wed Mar 29 10:10 - down   (00:01)    
reboot   system boot  0.0.0.0          Wed Mar 29 10:09          (00:03)
(where 255.255.255.255 is actually my ip which I am not going to post on this or any other board)
 
Old 03-30-2006, 05:27 AM   #3
smart girl
LQ Newbie
 
Registered: Mar 2006
Posts: 6

Original Poster
Rep: Reputation: 0
ReefShark

thank you very much you are the best

may I ask a question .. does reboot info apears in every linux systems when LAST command is used?
 
Old 03-30-2006, 08:07 AM   #4
ReefShark
Member
 
Registered: Oct 2003
Location: the Netherlands
Distribution: Arch Linux, Ubuntu server
Posts: 145

Rep: Reputation: 15
I quickly checked... I have RedHat and SLES (SuSE) at work, I use Gentoo on my laptop and currently have Ubuntu installed on my test PC at work. All seem to have this information in their 'last' output. So I'd say most if not all linux systems give this output.
 
  


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
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 02:23 AM
linux command anirudh Programming 3 02-25-2005 11:53 AM
unix command to linux command leonidas Linux - General 1 09-10-2004 12:40 AM
Linux Command Haroon Linux - General 3 09-07-2004 04:54 AM

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

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