LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

utmpdump

Dump utmp and wtmp login accounting files

TLDR

Dump wtmp file to stdout
$ utmpdump /var/log/wtmp
copy
Dump btmp file (failed logins)
$ utmpdump /var/log/btmp
copy
Follow file for new entries
$ utmpdump -f /var/log/wtmp
copy
Write output to file
$ utmpdump -o output.txt /var/log/wtmp
copy
Reverse (load) edited dump back to file
$ utmpdump -r dumpfile > /var/log/wtmp
copy

SYNOPSIS

utmpdump [options] [filename]

DESCRIPTION

utmpdump dumps UTMP and WTMP files in raw format for examination and debugging. It can also reverse the process to write edited login information back to the accounting files.

PARAMETERS

-f, --follow

Output appended data as the file grows
-o, --output FILE
Write output to specified file instead of stdout
-r, --reverse
Undump; write edited login information back to utmp/wtmp files
-h, --help
Display help text and exit
-V, --version
Print version and exit

INSTALL

sudo apk add util-linux-misc
copy

CAVEATS

This tool is designed for debugging purposes. The -r option should be used with extreme caution as incorrect usage can corrupt login accounting files. Timestamps use millisecond-precision ISO-8601 format in UTC-0 timezone.

HISTORY

utmpdump is part of the util-linux package, providing utilities for examining and repairing corrupted utmp and wtmp entries.

SEE ALSO

last(1), lastb(1), who(1), w(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid