{
    "content": [
        {
            "type": "text",
            "text": "# XZDIFF (man)\n\n## NAME\n\nxzcmp, xzdiff, lzcmp, lzdiff - compare compressed files\n\n## SYNOPSIS\n\nxzcmp [cmpoptions] file1 [file2]\nxzdiff [diffoptions] file1 [file2]\nlzcmp [cmpoptions] file1 [file2]\nlzdiff [diffoptions] file1 [file2]\n\n## DESCRIPTION\n\nxzcmp  and  xzdiff invoke cmp(1) or diff(1) on files compressed with xz(1), lzma(1), gzip(1),\nbzip2(1), or lzop(1).  All options specified are passed directly to cmp(1)  or  diff(1).   If\nonly  one file is specified, then the files compared are file1 (which must have a suffix of a\nsupported compression format) and file1 from which the compression  format  suffix  has  been\nstripped.   If  two  files  are specified, then they are uncompressed if necessary and fed to\ncmp(1) or diff(1).  The exit status from cmp(1) or diff(1) is preserved.\n\n## TLDR\n\n> Invokes `diff` on files compressed with `xz`, `lzma`, `gzip`, `bzip2`, `lzop`, or `zstd`.\n\n- Compare two files:\n  `xzdiff {{path/to/file1}} {{path/to/file2}}`\n- Compare two files, showing the differences side by side:\n  `xzdiff --side-by-side {{path/to/file1}} {{path/to/file2}}`\n- Compare two files and report only that they differ (no details on what is different):\n  `xzdiff --brief {{path/to/file1}} {{path/to/file2}}`\n- Compare two files and report when the files are the same:\n  `xzdiff --report-identical-files {{path/to/file1}} {{path/to/file2}}`\n- Compare two files using paginated results:\n  `xzdiff --paginate {{path/to/file1}} {{path/to/file2}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **SEE ALSO**\n- **BUGS**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "XZDIFF",
        "section": "",
        "mode": "man",
        "summary": "xzcmp, xzdiff, lzcmp, lzdiff - compare compressed files",
        "synopsis": "xzcmp [cmpoptions] file1 [file2]\nxzdiff [diffoptions] file1 [file2]\nlzcmp [cmpoptions] file1 [file2]\nlzdiff [diffoptions] file1 [file2]",
        "tldr_summary": "Invokes `diff` on files compressed with `xz`, `lzma`, `gzip`, `bzip2`, `lzop`, or `zstd`.",
        "tldr_examples": [
            {
                "description": "Compare two files",
                "command": "xzdiff {{path/to/file1}} {{path/to/file2}}"
            },
            {
                "description": "Compare two files, showing the differences side by side",
                "command": "xzdiff --side-by-side {{path/to/file1}} {{path/to/file2}}"
            },
            {
                "description": "Compare two files and report only that they differ (no details on what is different)",
                "command": "xzdiff --brief {{path/to/file1}} {{path/to/file2}}"
            },
            {
                "description": "Compare two files and report when the files are the same",
                "command": "xzdiff --report-identical-files {{path/to/file1}} {{path/to/file2}}"
            },
            {
                "description": "Compare two files using paginated results",
                "command": "xzdiff --paginate {{path/to/file1}} {{path/to/file2}}"
            }
        ],
        "tldr_source": "official",
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "cmp",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/cmp/1/json"
            },
            {
                "name": "diff",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/diff/1/json"
            },
            {
                "name": "xz",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/xz/1/json"
            },
            {
                "name": "gzip",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/gzip/1/json"
            },
            {
                "name": "bzip2",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/bzip2/1/json"
            },
            {
                "name": "lzop",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/lzop/1/json"
            },
            {
                "name": "zdiff",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/zdiff/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "xzcmp, xzdiff, lzcmp, lzdiff - compare compressed files\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "xzcmp [cmpoptions] file1 [file2]\nxzdiff [diffoptions] file1 [file2]\nlzcmp [cmpoptions] file1 [file2]\nlzdiff [diffoptions] file1 [file2]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "xzcmp  and  xzdiff invoke cmp(1) or diff(1) on files compressed with xz(1), lzma(1), gzip(1),\nbzip2(1), or lzop(1).  All options specified are passed directly to cmp(1)  or  diff(1).   If\nonly  one file is specified, then the files compared are file1 (which must have a suffix of a\nsupported compression format) and file1 from which the compression  format  suffix  has  been\nstripped.   If  two  files  are specified, then they are uncompressed if necessary and fed to\ncmp(1) or diff(1).  The exit status from cmp(1) or diff(1) is preserved.\n\nThe names lzcmp and lzdiff are provided for backward compatibility with LZMA Utils.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "cmp(1), diff(1), xz(1), gzip(1), bzip2(1), lzop(1), zdiff(1)\n",
                "subsections": []
            },
            "BUGS": {
                "content": "Messages from the cmp(1) or diff(1) programs refer to temporary filenames  instead  of  those\nspecified.\n\n\n\nTukaani                                      2011-03-19                                    XZDIFF(1)",
                "subsections": []
            }
        }
    }
}