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 2012" "util-linux" "System Administration"
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
32 .IP "\fB\-f\fR, \fB\-\-follow\fP"
33 Output appended data as the file grows.
34 .IP "\fB\-o\fR, \fB\-\-output\fP \fIfile\fR
35 Write command output to \fIfile\fR instead of standard output.
36 .IP "\fB\-r\fR, \fB\-\-reverse\fP
37 Undump, write back edited login information into the utmp or wtmp files.
38 .IP "\fB\-h\fR, \fB\-\-help\fP"
39 Display help text and exit.
40 .IP "\fB\-V\fR, \fB\-\-version\fP"
41 Display version information and exit.
44 can be useful in cases of corrupted utmp or wtmp entries. It can dump
45 out utmp/wtmp to an ASCII file, which can then be edited to remove
46 bogus entries, and reintegrated using:
49 .B utmpdump -r < ascii_file > wtmp
54 was written for debugging purposes only.
60 option, as the format for the utmp/wtmp files strongly depends on the input
63 written for normal use, but for debugging only.
72 The utmpdump command is part of the util-linux package and is available
74 .UR ftp://\:ftp.kernel.org\:/pub\:/linux\:/utils\:/util-linux/