1 //po4a: entry man manual
3 Copyright (C) 2010 Michael Krapp
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 :man manual: User Commands
22 :man source: util-linux {release-version}
28 utmpdump - dump UTMP and WTMP files in raw format
32 *utmpdump* [options] _filename_
36 *utmpdump* is a simple program to dump UTMP and WTMP files in raw format, so they can be examined. *utmpdump* reads from stdin unless a _filename_ is passed.
41 Output appended data as the file grows.
43 *-o*, *--output* _file_::
44 Write command output to _file_ instead of standard output.
47 Undump, write back edited login information into the utmp or wtmp files.
50 Display version information and exit.
53 Display help text and exit.
57 *utmpdump* can be useful in cases of corrupted utmp or wtmp entries. It can dump out utmp/wtmp to an ASCII file, which can then be edited to remove bogus entries, and reintegrated using:
60 *utmpdump -r < ascii_file > wtmp*
63 But be warned, *utmpdump* was written for debugging purposes only.
67 Only the binary version of the *utmp*(5) is standardised. Textual dumps may become incompatible in future.
69 The version 2.28 was the last one that printed text output using *ctime*(3) timestamp format. Newer dumps use millisecond precision ISO-8601 timestamp format in UTC-0 timezone. Conversion from former timestamp format can be made to binary, although attempt to do so can lead the timestamps to drift amount of timezone offset.
73 You may *not* use the *-r* option, as the format for the utmp/wtmp files strongly depends on the input format. This tool was *not* written for normal use, but for debugging only.
86 include::man-common/bugreports.adoc[]
88 include::man-common/footer.adoc[]
91 include::man-common/translation.adoc[]