{
    "mode": "man",
    "parameter": "ZDIFF",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/ZDIFF/1/json",
    "generated": "2026-05-30T06:10:46Z",
    "synopsis": "zcmp [ cmpoptions ] file1 [ file2 ]\nzdiff [ diffoptions ] file1 [ file2 ]",
    "sections": {
        "NAME": {
            "content": "zcmp, zdiff - compare compressed files\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "zcmp [ cmpoptions ] file1 [ file2 ]\nzdiff [ diffoptions ] file1 [ file2 ]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Zcmp  and  zdiff are used to invoke the cmp or the diff program on files compressed via gzip.\nAll options specified are passed directly to cmp or diff.  If only file1 is specified, it  is\ncompared  to  the  uncompressed contents of file1.gz.  If two files are specified, their con‐\ntents (uncompressed if necessary) are fed to cmp or diff.  The input files are not  modified.\nThe exit status from cmp or diff is preserved.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "cmp(1), diff(1), zmore(1), zgrep(1), znew(1), zforce(1), gzip(1), gzexe(1)\n",
            "subsections": []
        },
        "BUGS": {
            "content": "Messages  from the cmp or diff programs may refer to file names such as \"-\" instead of to the\nfile names specified.\n\n\n\nZDIFF(1)",
            "subsections": []
        }
    },
    "summary": "zcmp, zdiff - compare compressed files",
    "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": "zmore",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/zmore/1/json"
        },
        {
            "name": "zgrep",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/zgrep/1/json"
        },
        {
            "name": "znew",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/znew/1/json"
        },
        {
            "name": "zforce",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/zforce/1/json"
        },
        {
            "name": "gzip",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/gzip/1/json"
        },
        {
            "name": "gzexe",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/gzexe/1/json"
        }
    ]
}