1UTMPDUMP(1)                      User Commands                     UTMPDUMP(1)
2
3
4

NAME

6       utmpdump - dump UTMP and WTMP files in raw format
7

SYNOPSIS

9       utmpdump [options] [filename]
10

DESCRIPTION

12       utmpdump is a simple program to dump UTMP and WTMP files in raw format,
13       so they can be examined.  utmpdump reads from stdin unless  a  filename
14       is passed.
15

OPTIONS

17       -f, --follow
18              Output appended data as the file grows.
19
20       -o, --output file
21              Write command output to file instead of standard output.
22
23       -r, --reverse
24              Undump,  write  back  edited  login information into the utmp or
25              wtmp files.
26
27       -V, --version
28              Display version information and exit.
29
30       -h, --help
31              Display help text and exit.
32

NOTES

34       utmpdump can be useful in cases of corrupted utmp or wtmp entries.   It
35       can  dump  out  utmp/wtmp to an ASCII file, which can then be edited to
36       remove bogus entries, and reintegrated using:
37
38              utmpdump -r < ascii_file > wtmp
39
40       But be warned, utmpdump was written for debugging purposes only.
41
42   File formats
43       The only binary version of the utmp(5) is standardised.  Textual  dumps
44       may become incompatible in future.
45
46       The  version  2.28  was  the  last  one  that printed text output using
47       ctime(3) timestamp  format.   Newer  dumps  use  millisecond  precision
48       ISO-8601  timestamp  format  in UTC-0 timezone.  Conversion from former
49       timestamp format can be made to binary, although attempt to do  so  can
50       lead the timestamps to drift amount of timezone offset.
51

BUGS

53       You  may  not  use the -r option, as the format for the utmp/wtmp files
54       strongly depends on the input format.  This tool was  not  written  for
55       normal use, but for debugging only.
56

AUTHOR

58       Michael Krapp
59

SEE ALSO

61       last(1), w(1), who(1), utmp(5)
62

AVAILABILITY

64       The utmpdump command is part of the util-linux package and is available
65       from Linux Kernel Archive ⟨https://www.kernel.org/pub/linux/utils/util-
66       linux/⟩.
67
68
69
70util-linux                         July 2014                       UTMPDUMP(1)
Impressum