LASTLOG(8) (System Management Commands) (NAME) lastlog - (SYNOPSIS) lastlog [options] (DESCRIPTION) lastlog /var/log/lastlog . (login-name) (port) (last login time) . ( ) lastlog /etc/passwd . (OPTIONS) lastlog : -b, --before DAYS lastlog DAYS () . -C, --clear lastlog . -u (--user) . -h, --help . -R, --root CHROOT_DIR CHROOT_DIR CHROOT_DIR. . SELINUX . -S, --set lastlog . -u (--user) . -t, --time DAYS lastlog DAYS (). -u, --user LOGIN|RANGE lastlog () . (login name) (numerical user ID) (RANGE) . (RANGE) (UID_MIN-UID_MAX) (-UID_MAX) (UID_MIN-) . -a lastlog . '**Never logged in**' . ** Never logged in** . . . (NOTE) lastlog . (rotate ). (sparse file) "ls -l" ( UID passwd ). "ls -s" . (CONFIGURATION) /etc/login.defs : LASTLOG_UID_MAX (number) lastlog . lastlog . LASTLOG_UID_MAX lastlog . (FILES) /var/log/lastlog . (CAVEATS) UID lastlog ( lastlog UID 170 800 lastlog UID 171-799 ). UID /var/log/lastlog . (sparse) . (SEE ALSO) login(1), passwd(5), shadow(5), lastlog2(8). shadow-utils 12/14/2025 LASTLOG(8)