1 .\" Copyright (C) 2010 Michael Krapp
3 .\" This program is free software; you can redistribute it and/or modify
4 .\" it under the terms of the GNU General Public License as published by
5 .\" the Free Software Foundation; either version 2 of the License, or
6 .\" (at your option) any later version.
8 .\" This program is distributed in the hope that it will be useful,
9 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
10 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 .\" GNU General Public License for more details.
13 .\" You should have received a copy of the GNU General Public License
14 .\" along with this program; if not, write to the Free Software
15 .\" Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 .TH UTMPDUMP 1 "July 2014" "util-linux" "User Commands"
19 utmpdump \- dump UTMP and WTMP files in raw format
21 .BR utmpdump " [options]"
25 is a simple program to dump UTMP and WTMP files in raw format, so they
28 reads from stdin unless a
33 .BR \-f , " \-\-follow"
34 Output appended data as the file grows.
36 .BR \-o , " \-\-output " \fIfile
37 Write command output to \fIfile\fR instead of standard output.
39 .BR \-r , " \-\-reverse"
40 Undump, write back edited login information into the utmp or wtmp files.
42 .BR \-V , " \-\-version"
43 Display version information and exit.
46 Display help text and exit.
49 can be useful in cases of corrupted utmp or wtmp entries. It can dump
50 out utmp/wtmp to an ASCII file, which can then be edited to remove
51 bogus entries, and reintegrated using:
54 .B utmpdump \-r < ascii_file > wtmp
59 was written for debugging purposes only.
62 Only the binary version of the
64 is standardised. Textual dumps may become incompatible in future.
66 The version 2.28 was the last one that printed text output using
68 timestamp format. Newer dumps use millisecond precision ISO-8601 timestamp
69 format in UTC-0 timezone. Conversion from former timestamp format can be
70 made to binary, although attempt to do so can lead the timestamps to drift
71 amount of timezone offset.
77 option, as the format for the utmp/wtmp files strongly depends on the input
80 written for normal use, but for debugging only.
89 The utmpdump command is part of the util-linux package and is available
91 .UR https://\:www.kernel.org\:/pub\:/linux\:/utils\:/util-linux/