Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 11-16-2005, 04:52 PM   #1
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
user 1
user 1
user 2
user 2
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, 07:34 PM   #2
Registered: Jun 2005
Posts: 542

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

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

Original Poster
Rep: Reputation: 31
thanks both suggestions appreciated


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 01:44 PM
show motd on login pirozzi Debian 11 12-15-2004 10:40 AM
sshd_config banner to show users IP tommytomato Linux - Security 5 06-20-2004 05:50 AM
why does gkrellm show multiple users? |2ainman Linux - Software 1 04-17-2004 07:37 AM
Show Uptime On Shell Login~ skate Linux - Software 2 09-09-2003 12:48 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration