]> git.ipfire.org Git - thirdparty/util-linux.git/blame - login-utils/utmpdump.1
docs: format, grammarize, and standardize the wall man page
[thirdparty/util-linux.git] / login-utils / utmpdump.1
CommitLineData
78d5ceac
KZ
1'\" -*- coding: UTF-8 -*-
2.\" Copyright (C) 2010 Michael Krapp
3.\"
4.\" This program is free software; you can redistribute it and/or modify
5.\" it under the terms of the GNU General Public License as published by
6.\" the Free Software Foundation; either version 2 of the License, or
7.\" (at your option) any later version.
8.\"
9.\" This program is distributed in the hope that it will be useful,
10.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
11.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12.\" GNU General Public License for more details.
13.\"
14.\" You should have received a copy of the GNU General Public License
15.\" along with this program; if not, write to the Free Software
16.\" Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17.\"
ea4ca239 18.TH UTMPDUMP "1" "July 2012" "util-linux" "System Administration"
78d5ceac
KZ
19.SH NAME
20utmpdump \- dump UTMP and WTMP files in raw format
21.SH SYNOPSIS
930954d8 22utmpdump [\-frohV] [ filename ]
78d5ceac 23.SH DESCRIPTION
ea4ca239
SK
24.B utmpdump
25is a simple program to dump UTMP and WTMP files in raw format, so they
26can be examined.
27.B utmpdump
28eads from stdin unless a
4810de91
BV
29.I filename
30is passed.
78d5ceac 31.SH OPTIONS
ea4ca239
SK
32.IP "\fB\-f\fR, \fB\-\-follow\fP"
33Output appended data as the file grows.
34.IP "\fB\-r\fR, \fB\-\-reverse\fP
9e15c93d 35Undump, write back edited login information into utmp or wtmp files.
930954d8
SK
36.IP "\fB\-o\fR, \fB\-\-output\fP \fIfile\fR
37Write command output to file instead of standard output.
ea4ca239 38.IP "\fB\-h\fR, \fB\-\-help\fP"
9e15c93d 39Print a help text and exit.
ea4ca239 40.IP "\fB\-V\fR, \fB\-\-version\fP"
9e15c93d
KZ
41Output version information and exit.
42.SH NOTES
ea4ca239
SK
43.B utmpdump
44can be useful in cases of corrupted utmp or wtmp entries. It can dump
45out utmp/wtmp to an ASCII file, then that file can be edited to remove
46bogus entries and reintegrated, using
78d5ceac 47.PP
ea4ca239
SK
48.RS
49utmpdump -r < ascii_file > wtmp
50.RE
51.PP
78d5ceac
KZ
52but be warned as
53.B utmpdump
54was written for debugging purpose only.
55.SH BUGS
56You may
57.B not
ea4ca239
SK
58use the option
59.B \-r
60as the format for the utmp/wtmp files strongly depends on the input
61format. This tool was
78d5ceac
KZ
62.B not
63written for normal use but for debugging.
64.SH AUTHOR
65Michael Krapp
66.SH "SEE ALSO"
67.BR last (1),
68.BR w (1),
69.BR who (1),
ea4ca239
SK
70.BR utmp (5)
71.SH AVAILABILITY
72The utmpdump command is part of the util-linux package and is available
73from
74.UR ftp://\:ftp.kernel.org\:/pub\:/linux\:/utils\:/util-linux/
75Linux Kernel Archive
76.UE .