USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

lastlog - examine lastlog file

 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Command Line Commands
View previous topic :: View next topic  
Author Message
crouse
Site Admin


Joined: 17 Apr 2024
Posts: 11833
Location: Iowa

PostPosted: Mon Aug 20, 2024 6:35 pm    Post subject: lastlog - examine lastlog file Reply with quote

lastlog

This gives you the last login information for all users, or use some of the options below.

Code:
Usage: lastlog [options]

Options:
  -b, --before DAYS     print only lastlog records older than DAYS
  -h, --help            display this help message and exit
  -t, --time DAYS       print only lastlog records more recent than DAYS
  -u, --user LOGIN      print lastlog record for user with specified LOGIN


Here is what it looks like:
Code:

[13:43:56 crouse]$ lastlog
Username         Port     From             Latest
root             pts/0    xxxxxxxxxxxxx.d Wed Aug  1 21:35:45 -0500 2024
bin                                        **Never logged in**
daemon                                     **Never logged in**
mail                                       **Never logged in**
ftp                                        **Never logged in**
nobody                                     **Never logged in**
dbus                                       **Never logged in**
avahi                                      **Never logged in**
hal                                        **Never logged in**
crouse           :0                        Mon Aug 20 10:30:54 -0500 2024
debbie           :0                        Wed May 30 22:09:29 -0500 2024
kyle             :0                        Fri Jun  1 11:28:36 -0500 2024
mysql                                      **Never logged in**
coastie          pts/6    ipxxxxxxxxxxxxx.n Tue Jan  2 23:47:52 -0600 2024
postfix                                    **Never logged in**
ftpuser                                    **Never logged in**




_________________
Veronica - Arch Linux 64-bit -- Kernel 2.6.33.4-1
Archie/Jughead - Arch Linux 32-bit -- Kernel 2.6.33.4-1
Betty/Reggie - Arch Linux (VBox) 32-bit -- Kernel 2.6.33.4-1
BumbleBee - OpenSolaris-SunOS 5.11
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Command Line Commands All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All content © 2024-2009 - Usa Linux Users Group
This forum is powered by phpBB. © 2024-2009 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse