WTMPDB(8) | wtmpdb | WTMPDB(8) |
NAME¶
wtmpdb - display login, logout and reboot information
SYNOPSIS¶
wtmpdb COMMAND [option...]
DESCRIPTION¶
wtmpdb displays the content of the wtmp login and boot times database and provides sub-commands for system scripts to create boot and shutdown entries and otherwise manipulate the wtmp database.
This command is year 2038-safe and uses sqlite3 to store the information.
COMMANDS¶
The following commands are understood:
last [option...] [username...] [tty...]
The login and logout times of the special user reboot are the boot and shutdown times of the system.
-a, --hostlast
-d, --dns
-f, --file FILE
-F, --fulltimes
-i, --ip
-n, --limit N, -N
-p, --present TIME
-R, --nohostname
-S, --service
-s, --since TIME
-t, --until TIME
-w, --fullnames
-x, --system
--time-format FORMAT
TIME must be in the format "YYYYMMDDHHMMSS", "YYYY-MM-DD HH:MM:SS", "YYYY-MM-DD HH:MM", "YYYY-MM-DD", "HH:MM:SS", "HH:MM", "now", "today", "yesterday" or "tomorrow" (time will be set to 00:00:00 if not specified; the date to today's).
boot [option...]
-f, --file FILE
-q, --quiet
shutdown [option...]
-f, --file FILE
rotate [option...]
-f, --file FILE
-d, --days DAYS
import [option...] file...
-f, --file FILE
global options
-h, --help
-v, --version
FILES¶
/var/lib/wtmpdb/wtmp.db
SEE ALSO¶
AUTHOR¶
wtmpdb was written by Thorsten Kukuk <kukuk@suse.com>.
04/09/2025 | wtmpdb 0.73.0 |