LASTLOG2(8) | User Commands | LASTLOG2(8) |
NAME
lastlog2 - display date of last login for all users or a specific one
SYNOPSIS
lastlog2 [options]
DESCRIPTION
lastlog2 displays the content of the last login database. The login-name, last-login-time, tty and remote-host will be printed. The default (no flags) causes all last login entries to be printed, sorted by the order as written the first time into the database.
Compared to lastlog this command is Y2038 safe and uses sqlite3 to store the information and not a sparse file.
OPTIONS
-b, --before DAYS
-C, --clear
-d, *--database FILE
-h, --help
-i, --import FILE
-r, --rename NEWNAME
-s, --servive num
-S, --set
-t, --time DAYS
-u, --users LOGINS
-v, --version
If the user has never logged in the message Never logged in will be displayed in the latest login time row.
Only the entries for the current users of the system will be displayed. Other entries may exist for users that were deleted previously.
FILES
/var/lib/lastlog/lastlog2.db
AUTHORS
lastlog2 was written by Thorsten Kukuk for liblastlog2(3).
SEE ALSO
REPORTING BUGS
For bug reports, use the issue tracker at https://github.com/util-linux/util-linux/issues.
AVAILABILITY
The lastlog2 command is part of the util-linux package which can be downloaded from Linux Kernel Archive https://www.kernel.org/pub/linux/utils/util-linux/.
2025-01-13 | util-linux 2.40.4 |