LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-16-2005, 05:52 PM   #1
wisdom
Member
 
Registered: Feb 2004
Distribution: Fedora 9
Posts: 226

Rep: Reputation: 31
show last users login


I am using fedor core 4. I would like to know how i can format "$ last " in such a way in which it ONLY shows the LAST login of EACH indiviuals and not the previous ones e.g.
user 1
user 2
user 3
NOT
user 1
user 1
user 2
user 2
etc
witout a reaccurance of any of the users previous logins before their last login.
hope this makes sence.
of is there another command or methond that i can used?

thanks for help in advance
 
Old 11-16-2005, 08:34 PM   #2
primo
Member
 
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
what about lastlog(5) & lastlog(8) ?
 
Old 11-16-2005, 10:56 PM   #3
fur
Member
 
Registered: Dec 2003
Distribution: Debian, FreeBSD
Posts: 310

Rep: Reputation: 35
last | awk '{print $1}' | sort --unique
 
Old 11-17-2005, 03:56 AM   #4
wisdom
Member
 
Registered: Feb 2004
Distribution: Fedora 9
Posts: 226

Original Poster
Rep: Reputation: 31
thanks both suggestions appreciated
 
  


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
Show Login Screen on SuSE 9.2 Zakirium Linux - Newbie 2 01-17-2006 02:44 PM
show motd on login pirozzi Debian 11 12-15-2004 11:40 AM
sshd_config banner to show users IP tommytomato Linux - Security 5 06-20-2004 06:50 AM
why does gkrellm show multiple users? |2ainman Linux - Software 1 04-17-2004 08:37 AM
Show Uptime On Shell Login~ skate Linux - Software 2 09-09-2003 01:48 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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