{
    "content": [
        {
            "type": "text",
            "text": "# utmpdump(1) (man)\n\n**Summary:** utmpdump - dump UTMP and WTMP files in raw format\n\n**Synopsis:** utmpdump [options] filename\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -f | --follow | — | Output appended data as the file grows. |\n| -o | --output | — | Write command output to file instead of standard output. |\n| -r | --reverse | — | Undump, write back edited login information into the utmp or wtmp files. |\n| -V | --version | — | Display version information and exit. |\n| -h | --help | — | Display help text and exit. |\n\n## See Also\n\n- last(1)\n- w(1)\n- who(1)\n- utmp(5)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (3 lines)\n- **OPTIONS** (1 lines) — 5 subsections\n  - -f --follow (2 lines)\n  - -o --output (2 lines)\n  - -r --reverse (2 lines)\n  - -V --version (2 lines)\n  - -h --help (2 lines)\n- **NOTES** (7 lines) — 1 subsections\n  - File formats (8 lines)\n- **BUGS** (3 lines)\n- **AUTHORS** (2 lines)\n- **SEE ALSO** (2 lines)\n- **REPORTING BUGS** (2 lines)\n- **AVAILABILITY** (6 lines)\n\n## Full Content\n\n### NAME\n\nutmpdump - dump UTMP and WTMP files in raw format\n\n### SYNOPSIS\n\nutmpdump [options] filename\n\n### DESCRIPTION\n\nutmpdump is a simple program to dump UTMP and WTMP files in raw format, so they can be\nexamined. utmpdump reads from stdin unless a filename is passed.\n\n### OPTIONS\n\n#### -f --follow\n\nOutput appended data as the file grows.\n\n#### -o --output\n\nWrite command output to file instead of standard output.\n\n#### -r --reverse\n\nUndump, write back edited login information into the utmp or wtmp files.\n\n#### -V --version\n\nDisplay version information and exit.\n\n#### -h --help\n\nDisplay help text and exit.\n\n### NOTES\n\nutmpdump can be useful in cases of corrupted utmp or wtmp entries. It can dump out utmp/wtmp\nto an ASCII file, which can then be edited to remove bogus entries, and reintegrated using:\n\nutmpdump -r < asciifile > wtmp\n\nBut be warned, utmpdump was written for debugging purposes only.\n\n#### File formats\n\nOnly the binary version of the utmp(5) is standardised. Textual dumps may become incompatible\nin future.\n\nThe version 2.28 was the last one that printed text output using ctime(3) timestamp format.\nNewer dumps use millisecond precision ISO-8601 timestamp format in UTC-0 timezone. Conversion\nfrom former timestamp format can be made to binary, although attempt to do so can lead the\ntimestamps to drift amount of timezone offset.\n\n### BUGS\n\nYou may not use the -r option, as the format for the utmp/wtmp files strongly depends on the\ninput format. This tool was not written for normal use, but for debugging only.\n\n### AUTHORS\n\nMichael Krapp\n\n### SEE ALSO\n\nlast(1), w(1), who(1), utmp(5)\n\n### REPORTING BUGS\n\nFor bug reports, use the issue tracker at https://github.com/karelzak/util-linux/issues.\n\n### AVAILABILITY\n\nThe utmpdump command is part of the util-linux package which can be downloaded from Linux\nKernel Archive <https://www.kernel.org/pub/linux/utils/util-linux/>.\n\n\n\nutil-linux 2.37.2                            2021-06-02                                  UTMPDUMP(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "utmpdump",
        "section": "1",
        "mode": "man",
        "summary": "utmpdump - dump UTMP and WTMP files in raw format",
        "synopsis": "utmpdump [options] filename",
        "flags": [
            {
                "flag": "-f",
                "long": "--follow",
                "arg": null,
                "description": "Output appended data as the file grows."
            },
            {
                "flag": "-o",
                "long": "--output",
                "arg": null,
                "description": "Write command output to file instead of standard output."
            },
            {
                "flag": "-r",
                "long": "--reverse",
                "arg": null,
                "description": "Undump, write back edited login information into the utmp or wtmp files."
            },
            {
                "flag": "-V",
                "long": "--version",
                "arg": null,
                "description": "Display version information and exit."
            },
            {
                "flag": "-h",
                "long": "--help",
                "arg": null,
                "description": "Display help text and exit."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "last",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/last/1/json"
            },
            {
                "name": "w",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/w/1/json"
            },
            {
                "name": "who",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/who/1/json"
            },
            {
                "name": "utmp",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/utmp/5/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-f --follow",
                        "lines": 2,
                        "flag": "-f",
                        "long": "--follow"
                    },
                    {
                        "name": "-o --output",
                        "lines": 2,
                        "flag": "-o",
                        "long": "--output"
                    },
                    {
                        "name": "-r --reverse",
                        "lines": 2,
                        "flag": "-r",
                        "long": "--reverse"
                    },
                    {
                        "name": "-V --version",
                        "lines": 2,
                        "flag": "-V",
                        "long": "--version"
                    },
                    {
                        "name": "-h --help",
                        "lines": 2,
                        "flag": "-h",
                        "long": "--help"
                    }
                ]
            },
            {
                "name": "NOTES",
                "lines": 7,
                "subsections": [
                    {
                        "name": "File formats",
                        "lines": 8
                    }
                ]
            },
            {
                "name": "BUGS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "REPORTING BUGS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AVAILABILITY",
                "lines": 6,
                "subsections": []
            }
        ]
    }
}