LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-08-2007, 09:05 AM   #1
amit_joshi
LQ Newbie
 
Registered: Oct 2007
Location: Mumbai
Distribution: Fedora 6
Posts: 2

Rep: Reputation: 0
Where can i get details of last login to the machine


Hi,

Is there any command/file which will give me details of last login to the machine ?

is the file located in /var/log ?

Thanks,
Amit.
 
Old 10-08-2007, 09:11 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

Like the other thread you started, this looks a bit like homework.

Take a look at the following commands, this should get you started:

- last
- lastlog
- w
- who

Hope this helps.
 
Old 10-08-2007, 10:14 AM   #3
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
In general, when searching for a "howto" for something which may/should be possible on the command line, it's a good idea to first do a "man -k subject". Using grep in conjunction with this is particularly useful. For example:
Code:
man -k last |grep log
Who knows, you might even find it takes less time than posting in a forum. That's my experience anyhow.
 
  


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
Configuring Previous Login Details ryanlum Linux - Server 1 08-06-2007 04:39 AM
login Details in Redhat ES 5 vimalvallikkat Linux - Desktop 1 05-09-2007 03:40 AM
running more than one login on a single machine Four Linux - Newbie 1 03-31-2007 11:46 PM
Best Distro for a Dedicated Arcade Machine? (details inside) dryd kio Linux - Distributions 8 06-30-2006 11:15 PM
Remote X login on RH 9.0 machine abhatia Linux - Networking 2 01-09-2004 07:06 PM


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