{
    "mode": "man",
    "parameter": "ZNEW",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/ZNEW/1/json",
    "generated": "2026-06-12T16:38:04Z",
    "synopsis": "znew [ -ftv9PK] [ name.Z ...  ]",
    "sections": {
        "NAME": {
            "content": "znew -   recompress .Z files to .gz files\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "znew [ -ftv9PK] [ name.Z ...  ]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Znew  recompresses  files from .Z (compress) format to .gz (gzip) format.  If you want to re‐\ncompress a file already in gzip format, rename the file to force a .Z  extension  then  apply\nznew.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-f",
                    "content": "",
                    "flag": "-f"
                },
                {
                    "name": "-t",
                    "content": "",
                    "flag": "-t"
                },
                {
                    "name": "-v",
                    "content": "",
                    "flag": "-v"
                },
                {
                    "name": "-9",
                    "content": "",
                    "flag": "-9"
                },
                {
                    "name": "-P",
                    "content": "",
                    "flag": "-P"
                },
                {
                    "name": "-K -t",
                    "content": "",
                    "flag": "-t"
                }
            ]
        },
        "SEE ALSO": {
            "content": "gzip(1), zmore(1), zdiff(1), zgrep(1), zforce(1), gzexe(1), compress(1)\n",
            "subsections": []
        },
        "BUGS": {
            "content": "If  the  -P option is used, znew does not maintain the timestamp if touch(1) does not support\nthe -r option, and does not maintain permissions if chmod(1) does not support the --reference\noption.\n\n\n\nZNEW(1)",
            "subsections": []
        }
    },
    "summary": "znew -   recompress .Z files to .gz files",
    "flags": [
        {
            "flag": "-f",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-t",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-v",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-9",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-P",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-t",
            "long": null,
            "arg": null,
            "description": ""
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "gzip",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/gzip/1/json"
        },
        {
            "name": "zmore",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/zmore/1/json"
        },
        {
            "name": "zdiff",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/zdiff/1/json"
        },
        {
            "name": "zgrep",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/zgrep/1/json"
        },
        {
            "name": "zforce",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/zforce/1/json"
        },
        {
            "name": "gzexe",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/gzexe/1/json"
        },
        {
            "name": "compress",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/compress/1/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Recompress files from `.Z` to gzip format.",
        "examples": [
            {
                "description": "Recompress a file from `.Z` to gzip format",
                "command": "znew {{path/to/file1.Z}}"
            },
            {
                "description": "Recompress multiple files and display the achieved size reduction % per file",
                "command": "znew -v {{path/to/file1.Z path/to/file2.Z ...}}"
            },
            {
                "description": "Recompress a file using the slowest compression method (for optimal compression)",
                "command": "znew -9 {{path/to/file1.Z}}"
            },
            {
                "description": "Recompress a file, [K]eeping the `.Z` file if it is smaller than the gzip file",
                "command": "znew -K {{path/to/file1.Z}}"
            }
        ]
    }
}