{
    "content": [
        {
            "type": "text",
            "text": "# gzip (man)\n\n## NAME\n\ngzip, gunzip, zcat - compress or expand files\n\n## SYNOPSIS\n\ngzip [ -acdfhklLnNrtvV19 ] [-S suffix] [ name ...  ]\ngunzip [ -acfhklLnNrtvV ] [-S suffix] [ name ...  ]\nzcat [ -fhLV ] [ name ...  ]\n\n## DESCRIPTION\n\nThe  gzip  command reduces the size of the named files using Lempel-Ziv coding (LZ77).  When‐\never possible, each file is replaced by one with the extension .gz, while  keeping  the  same\nownership  modes, access and modification times.  (The default extension is z for MSDOS, OS/2\nFAT, Windows NT FAT and Atari.)  If no files are specified, or if a file  name  is  \"-\",  the\nstandard  input  is compressed to the standard output.  The gzip command will only attempt to\ncompress regular files.  In particular, it will ignore symbolic links.\n\n## TLDR\n\n> Compress/uncompress files with `gzip` compression (LZ77).\n\n- Compress a file, replacing it with a `gzip` archive:\n  `gzip {{path/to/file}}`\n- Decompress a file, replacing it with the original uncompressed version:\n  `gzip {{-d|--decompress}} {{path/to/file.gz}}`\n- Display the name and reduction percentage for each file compressed:\n  `gzip {{-v|--verbose}} {{path/to/file.gz}}`\n- Compress a file, keeping the original file:\n  `gzip {{-k|--keep}} {{path/to/file}}`\n- Compress a file, specifying the output filename:\n  `gzip {{-c|--stdout}} {{path/to/file}} > {{path/to/compressed_file.gz}}`\n- Decompress a `gzip` archive specifying the output filename:\n  `gzip {{-cd|--stdout --decompress}} {{path/to/file.gz}} > {{path/to/uncompressed_file}}`\n- Specify the compression level. 1 is the fastest (low compression), 9 is the slowest (high compression), 6 is the default:\n  `gzip -{{1..9}} {{-c|--stdout}} {{path/to/file}} > {{path/to/compressed_file.gz}}`\n- List the contents of a compressed file:\n  `gzip {{-l|--list}} {{path/to/file.txt.gz}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (19 subsections)\n- **ADVANCED USAGE**\n- **ENVIRONMENT**\n- **SEE ALSO**\n- **DIAGNOSTICS**\n- **CAVEATS**\n- **BUGS**\n- **REPORTING BUGS**\n- **COPYRIGHT NOTICE**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "gzip",
        "section": "",
        "mode": "man",
        "summary": "gzip, gunzip, zcat - compress or expand files",
        "synopsis": "gzip [ -acdfhklLnNrtvV19 ] [-S suffix] [ name ...  ]\ngunzip [ -acfhklLnNrtvV ] [-S suffix] [ name ...  ]\nzcat [ -fhLV ] [ name ...  ]",
        "tldr_summary": "Compress/uncompress files with `gzip` compression (LZ77).",
        "tldr_examples": [
            {
                "description": "Compress a file, replacing it with a `gzip` archive",
                "command": "gzip {{path/to/file}}"
            },
            {
                "description": "Decompress a file, replacing it with the original uncompressed version",
                "command": "gzip {{-d|--decompress}} {{path/to/file.gz}}"
            },
            {
                "description": "Display the name and reduction percentage for each file compressed",
                "command": "gzip {{-v|--verbose}} {{path/to/file.gz}}"
            },
            {
                "description": "Compress a file, keeping the original file",
                "command": "gzip {{-k|--keep}} {{path/to/file}}"
            },
            {
                "description": "Compress a file, specifying the output filename",
                "command": "gzip {{-c|--stdout}} {{path/to/file}} > {{path/to/compressed_file.gz}}"
            },
            {
                "description": "Decompress a `gzip` archive specifying the output filename",
                "command": "gzip {{-cd|--stdout --decompress}} {{path/to/file.gz}} > {{path/to/uncompressed_file}}"
            },
            {
                "description": "Specify the compression level. 1 is the fastest (low compression), 9 is the slowest (high compression), 6 is the default",
                "command": "gzip -{{1..9}} {{-c|--stdout}} {{path/to/file}} > {{path/to/compressed_file.gz}}"
            },
            {
                "description": "List the contents of a compressed file",
                "command": "gzip {{-l|--list}} {{path/to/file.txt.gz}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "-a",
                "long": "--ascii",
                "arg": null,
                "description": "Ascii text mode: convert end-of-lines using local conventions. This option is sup‐ ported only on some non-Unix systems. For MSDOS, CR LF is converted to LF when com‐ pressing, and LF is converted to CR LF when decompressing."
            },
            {
                "flag": "-c",
                "long": "--to-stdout",
                "arg": null,
                "description": "Write output on standard output; keep original files unchanged. If there are several input files, the output consists of a sequence of independently compressed members. To obtain better compression, concatenate all input files before compressing them."
            },
            {
                "flag": "-d",
                "long": "--uncompress",
                "arg": null,
                "description": "Decompress."
            },
            {
                "flag": "-f",
                "long": "--force",
                "arg": null,
                "description": "Force compression or decompression even if the file has multiple links or the corre‐ sponding file already exists, or if the compressed data is read from or written to a terminal. If the input data is not in a format recognized by gzip, and if the option --stdout is also given, copy the input data without change to the standard output: let zcat behave as cat. If -f is not given, and when not running in the background, gzip prompts to verify whether an existing file should be overwritten."
            },
            {
                "flag": "-h",
                "long": "--help",
                "arg": null,
                "description": "Display a help screen and quit."
            },
            {
                "flag": "-k",
                "long": "--keep",
                "arg": null,
                "description": "Keep (don't delete) input files during compression or decompression."
            },
            {
                "flag": "-l",
                "long": "--list",
                "arg": null,
                "description": "For each compressed file, list the following fields: compressed size: size of the compressed file uncompressed size: size of the uncompressed file ratio: compression ratio (0.0% if unknown) uncompressedname: name of the uncompressed file The uncompressed size is given as -1 for files not in gzip format, such as compressed .Z files. To get the uncompressed size for such a file, you can use: zcat file.Z | wc -c In combination with the --verbose option, the following fields are also displayed: method: compression method crc: the 32-bit CRC of the uncompressed data date & time: timestamp for the uncompressed file The compression methods currently supported are deflate, compress, lzh (SCO compress -H) and pack. The crc is given as ffffffff for a file not in gzip format. With --name, the uncompressed name, date and time are those stored within the com‐ press file if present. With --verbose, the size totals and compression ratio for all files is also displayed, unless some sizes are unknown. With --quiet, the title and totals lines are not dis‐ played."
            },
            {
                "flag": "-L",
                "long": "--license",
                "arg": null,
                "description": "Display the gzip license and quit."
            },
            {
                "flag": "-n",
                "long": "--no-name",
                "arg": null,
                "description": "When compressing, do not save the original file name and timestamp by default. (The original name is always saved if the name had to be truncated.) When decompressing, do not restore the original file name if present (remove only the gzip suffix from the compressed file name) and do not restore the original timestamp if present (copy it from the compressed file). This option is the default when decompressing."
            },
            {
                "flag": "-N",
                "long": "--name",
                "arg": null,
                "description": "When compressing, always save the original file name, and save the seconds part of the original modification timestamp if the original is a regular file and its timestamp is at least 1 (1970-01-01 00:00:01 UTC) and is less than 232 (2106-02-07 06:28:16 UTC, assuming leap seconds are not counted); this is the default. When decompressing, re‐ store from the saved file name and timestamp if present. This option is useful on sys‐ tems which have a limit on file name length or when the timestamp has been lost after a file transfer."
            },
            {
                "flag": "-q",
                "long": "--quiet",
                "arg": null,
                "description": "Suppress all warnings."
            },
            {
                "flag": "-r",
                "long": "--recursive",
                "arg": null,
                "description": "Travel the directory structure recursively. If any of the file names specified on the command line are directories, gzip will descend into the directory and compress all the files it finds there (or decompress them in the case of gunzip )."
            },
            {
                "flag": "-S",
                "long": "--suffix",
                "arg": null,
                "description": "When compressing, use suffix .suf instead of .gz. Any non-empty suffix can be given, but suffixes other than .z and .gz should be avoided to avoid confusion when files are transferred to other systems. When decompressing, add .suf to the beginning of the list of suffixes to try, when de‐ riving an output file name from an input file name."
            },
            {
                "flag": "",
                "long": "--synchronous",
                "arg": null,
                "description": "Use synchronous output. With this option, gzip is less likely to lose data during a system crash, but it can be considerably slower."
            },
            {
                "flag": "-t",
                "long": "--test",
                "arg": null,
                "description": "Test. Check the compressed file integrity then quit."
            },
            {
                "flag": "-v",
                "long": "--verbose",
                "arg": null,
                "description": "Verbose. Display the name and percentage reduction for each file compressed or decom‐ pressed."
            },
            {
                "flag": "-V",
                "long": "--version",
                "arg": null,
                "description": "Version. Display the version number and compilation options then quit."
            },
            {
                "flag": "",
                "long": "--best",
                "arg": null,
                "description": "Regulate the speed of compression using the specified digit #, where -1 or --fast in‐ dicates the fastest compression method (less compression) and -9 or --best indicates the slowest compression method (best compression). The default compression level is -6 (that is, biased towards high compression at expense of speed)."
            },
            {
                "flag": "",
                "long": "--rsyncable",
                "arg": null,
                "description": "When you synchronize a compressed file between two computers, this option allows rsync to transfer only files that were changed in the archive instead of the entire archive. Normally, after a change is made to any file in the archive, the compression algorithm can generate a new version of the archive that does not match the previous version of the archive. In this case, rsync transfers the entire new version of the archive to the remote computer. With this option, rsync can transfer only the changed files as well as a small amount of metadata that is required to update the archive structure in the area that was changed."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "znew",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/znew/1/json"
            },
            {
                "name": "zcmp",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/zcmp/1/json"
            },
            {
                "name": "zmore",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/zmore/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": "zip",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/zip/1/json"
            },
            {
                "name": "unzip",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/unzip/1/json"
            },
            {
                "name": "compress",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/compress/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 65,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-a --ascii",
                        "lines": 4,
                        "flag": "-a",
                        "long": "--ascii"
                    },
                    {
                        "name": "-c --stdout --to-stdout",
                        "lines": 4,
                        "flag": "-c",
                        "long": "--to-stdout"
                    },
                    {
                        "name": "-d --decompress --uncompress",
                        "lines": 2,
                        "flag": "-d",
                        "long": "--uncompress"
                    },
                    {
                        "name": "-f --force",
                        "lines": 7,
                        "flag": "-f",
                        "long": "--force"
                    },
                    {
                        "name": "-h --help",
                        "lines": 2,
                        "flag": "-h",
                        "long": "--help"
                    },
                    {
                        "name": "-k --keep",
                        "lines": 2,
                        "flag": "-k",
                        "long": "--keep"
                    },
                    {
                        "name": "-l --list",
                        "lines": 28,
                        "flag": "-l",
                        "long": "--list"
                    },
                    {
                        "name": "-L --license",
                        "lines": 2,
                        "flag": "-L",
                        "long": "--license"
                    },
                    {
                        "name": "-n --no-name",
                        "lines": 6,
                        "flag": "-n",
                        "long": "--no-name"
                    },
                    {
                        "name": "-N --name",
                        "lines": 8,
                        "flag": "-N",
                        "long": "--name"
                    },
                    {
                        "name": "-q --quiet",
                        "lines": 2,
                        "flag": "-q",
                        "long": "--quiet"
                    },
                    {
                        "name": "-r --recursive",
                        "lines": 4,
                        "flag": "-r",
                        "long": "--recursive"
                    },
                    {
                        "name": "-S .suf --suffix .suf",
                        "lines": 7,
                        "flag": "-S",
                        "long": "--suffix"
                    },
                    {
                        "name": "--synchronous",
                        "lines": 3,
                        "long": "--synchronous"
                    },
                    {
                        "name": "-t --test",
                        "lines": 2,
                        "flag": "-t",
                        "long": "--test"
                    },
                    {
                        "name": "-v --verbose",
                        "lines": 3,
                        "flag": "-v",
                        "long": "--verbose"
                    },
                    {
                        "name": "-V --version",
                        "lines": 2,
                        "flag": "-V",
                        "long": "--version"
                    },
                    {
                        "name": "-# --fast --best",
                        "lines": 5,
                        "long": "--best"
                    },
                    {
                        "name": "--rsyncable",
                        "lines": 9,
                        "long": "--rsyncable"
                    }
                ]
            },
            {
                "name": "ADVANCED USAGE",
                "lines": 39,
                "subsections": []
            },
            {
                "name": "ENVIRONMENT",
                "lines": 14,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "DIAGNOSTICS",
                "lines": 41,
                "subsections": []
            },
            {
                "name": "CAVEATS",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "REPORTING BUGS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "COPYRIGHT NOTICE",
                "lines": 15,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "gzip, gunzip, zcat - compress or expand files\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "gzip [ -acdfhklLnNrtvV19 ] [-S suffix] [ name ...  ]\ngunzip [ -acfhklLnNrtvV ] [-S suffix] [ name ...  ]\nzcat [ -fhLV ] [ name ...  ]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The  gzip  command reduces the size of the named files using Lempel-Ziv coding (LZ77).  When‐\never possible, each file is replaced by one with the extension .gz, while  keeping  the  same\nownership  modes, access and modification times.  (The default extension is z for MSDOS, OS/2\nFAT, Windows NT FAT and Atari.)  If no files are specified, or if a file  name  is  \"-\",  the\nstandard  input  is compressed to the standard output.  The gzip command will only attempt to\ncompress regular files.  In particular, it will ignore symbolic links.\n\nIf the compressed file name is too long for its file system, gzip  truncates  it.   The  gzip\ncommand  attempts  to  truncate only the parts of the file name longer than 3 characters.  (A\npart is delimited by dots.) If the name consists of small parts only, the longest  parts  are\ntruncated.  For  example,  if file names are limited to 14 characters, gzip.msdos.exe is com‐\npressed to gzi.msd.exe.gz.  Names are not truncated on systems which do not have a  limit  on\nfile name length.\n\nBy default, gzip keeps the original file name and timestamp in the compressed file. These are\nused  when decompressing the file with the -N option. This is useful when the compressed file\nname was truncated or when the timestamp was not preserved after a file transfer.\n\nCompressed files can be restored to their original form using gzip -d or gunzip or zcat.   If\nthe  original  name  saved  in the compressed file is not suitable for its file system, a new\nname is constructed from the original one to make it legal.\n\ngunzip takes a list of files on its command line and replaces each file whose name ends  with\n.gz,  -gz,  .z, -z, or z (ignoring case) and which begins with the correct magic number with\nan uncompressed file without the original extension.  gunzip also recognizes the special  ex‐\ntensions  .tgz and .taz as shorthands for .tar.gz and .tar.Z respectively.  When compressing,\ngzip uses the .tgz extension if necessary instead of truncating a file with a .tar extension.\n\ngunzip can currently decompress files created by gzip, zip, compress, compress  -H  or  pack.\nThe  detection  of  the  input format is automatic.  When using the first two formats, gunzip\nchecks a 32 bit CRC. For pack and gunzip checks the uncompressed length.  The  standard  com‐\npress  format  was not designed to allow consistency checks. However gunzip is sometimes able\nto detect a bad .Z file. If you get an error when uncompressing a .Z file, do not assume that\nthe .Z file is correct simply because the standard uncompress does not complain. This  gener‐\nally  means  that  the  standard  uncompress  does not check its input, and happily generates\ngarbage output.  The SCO compress -H format (lzh compression method) does not include  a  CRC\nbut also allows some consistency checks.\n\nFiles created by zip can be uncompressed by gzip only if they have a single member compressed\nwith  the  'deflation'  method.  This  feature is only intended to help conversion of tar.zip\nfiles to the tar.gz format.  To extract a zip file with a single member, use a  command  like\n'gunzip  <foo.zip'  or  'gunzip -S .zip foo.zip'.  To extract zip files with several members,\nuse unzip instead of gunzip.\n\nThe zcat command is identical to gunzip -c.  (On some systems, zcat may be installed as gzcat\nto preserve the original link to compress.)  zcat uncompresses either a list of files on  the\ncommand line or its standard input and writes the uncompressed data on standard output.  zcat\nwill  uncompress  files  that have the correct magic number whether they have a .gz suffix or\nnot.\n\nThe gzip command uses the Lempel-Ziv algorithm used in zip and PKZIP.  The amount of compres‐\nsion obtained depends on the size of the input and the  distribution  of  common  substrings.\nTypically,  text  such as source code or English is reduced by 60-70%.  Compression is gener‐\nally much better than that achieved by LZW (as used in compress), Huffman coding (as used  in\npack), or adaptive Huffman coding (compact).\n\nCompression  is  always  performed,  even  if the compressed file is slightly larger than the\noriginal. The worst case expansion is a few bytes for the gzip file header, plus 5 bytes  per\n32 KiB block, or an expansion ratio of 0.015% for large files. The actual number of used disk\nblocks almost never increases.\n\ngzip normally preserves the mode and modification timestamp of a file when compressing or de‐\ncompressing.  If  you  have  appropriate  privileges,  it also preserves the file's owner and\ngroup.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "",
                "subsections": [
                    {
                        "name": "-a --ascii",
                        "content": "Ascii text mode: convert end-of-lines using local conventions.  This  option  is  sup‐\nported  only  on  some non-Unix systems. For MSDOS, CR LF is converted to LF when com‐\npressing, and LF is converted to CR LF when decompressing.\n",
                        "flag": "-a",
                        "long": "--ascii"
                    },
                    {
                        "name": "-c --stdout --to-stdout",
                        "content": "Write output on standard output; keep original files unchanged.  If there are  several\ninput files, the output consists of a sequence of independently compressed members. To\nobtain better compression, concatenate all input files before compressing them.\n",
                        "flag": "-c",
                        "long": "--to-stdout"
                    },
                    {
                        "name": "-d --decompress --uncompress",
                        "content": "Decompress.\n",
                        "flag": "-d",
                        "long": "--uncompress"
                    },
                    {
                        "name": "-f --force",
                        "content": "Force  compression  or decompression even if the file has multiple links or the corre‐\nsponding file already exists, or if the compressed data is read from or written  to  a\nterminal.  If  the input data is not in a format recognized by gzip, and if the option\n--stdout is also given, copy the input data without change to the standard output: let\nzcat behave as cat.  If -f is not given, and when not running in the background,  gzip\nprompts to verify whether an existing file should be overwritten.\n",
                        "flag": "-f",
                        "long": "--force"
                    },
                    {
                        "name": "-h --help",
                        "content": "Display a help screen and quit.\n",
                        "flag": "-h",
                        "long": "--help"
                    },
                    {
                        "name": "-k --keep",
                        "content": "Keep (don't delete) input files during compression or decompression.\n",
                        "flag": "-k",
                        "long": "--keep"
                    },
                    {
                        "name": "-l --list",
                        "content": "For each compressed file, list the following fields:\n\ncompressed size: size of the compressed file\nuncompressed size: size of the uncompressed file\nratio: compression ratio (0.0% if unknown)\nuncompressedname: name of the uncompressed file\n\nThe  uncompressed size is given as -1 for files not in gzip format, such as compressed\n.Z files. To get the uncompressed size for such a file, you can use:\n\nzcat file.Z | wc -c\n\nIn combination with the --verbose option, the following fields are also displayed:\n\nmethod: compression method\ncrc: the 32-bit CRC of the uncompressed data\ndate & time: timestamp for the uncompressed file\n\nThe compression methods currently supported are deflate, compress, lzh  (SCO  compress\n-H) and pack.  The crc is given as ffffffff for a file not in gzip format.\n\nWith  --name,  the uncompressed name,  date and time  are those stored within the com‐\npress file if present.\n\nWith --verbose, the size totals and compression ratio for all files is also displayed,\nunless some sizes are unknown. With --quiet, the title and totals lines are  not  dis‐\nplayed.\n",
                        "flag": "-l",
                        "long": "--list"
                    },
                    {
                        "name": "-L --license",
                        "content": "Display the gzip license and quit.\n",
                        "flag": "-L",
                        "long": "--license"
                    },
                    {
                        "name": "-n --no-name",
                        "content": "When  compressing,  do  not save the original file name and timestamp by default. (The\noriginal name is always saved if the name had to be truncated.) When decompressing, do\nnot restore the original file name if present (remove only the gzip  suffix  from  the\ncompressed  file  name)  and do not restore the original timestamp if present (copy it\nfrom the compressed file). This option is the default when decompressing.\n",
                        "flag": "-n",
                        "long": "--no-name"
                    },
                    {
                        "name": "-N --name",
                        "content": "When compressing, always save the original file name, and save the seconds part of the\noriginal modification timestamp if the original is a regular file and its timestamp is\nat least 1 (1970-01-01 00:00:01 UTC) and is less than 232 (2106-02-07 06:28:16  UTC,\nassuming  leap  seconds are not counted); this is the default. When decompressing, re‐\nstore from the saved file name and timestamp if present. This option is useful on sys‐\ntems which have a limit on file name length or when the timestamp has been lost  after\na file transfer.\n",
                        "flag": "-N",
                        "long": "--name"
                    },
                    {
                        "name": "-q --quiet",
                        "content": "Suppress all warnings.\n",
                        "flag": "-q",
                        "long": "--quiet"
                    },
                    {
                        "name": "-r --recursive",
                        "content": "Travel  the directory structure recursively. If any of the file names specified on the\ncommand line are directories, gzip will descend into the directory  and  compress  all\nthe files it finds there (or decompress them in the case of gunzip ).\n",
                        "flag": "-r",
                        "long": "--recursive"
                    },
                    {
                        "name": "-S .suf --suffix .suf",
                        "content": "When  compressing, use suffix .suf instead of .gz.  Any non-empty suffix can be given,\nbut suffixes other than .z and .gz should be avoided to avoid confusion when files are\ntransferred to other systems.\n\nWhen decompressing, add .suf to the beginning of the list of suffixes to try, when de‐\nriving an output file name from an input file name.\n",
                        "flag": "-S",
                        "long": "--suffix"
                    },
                    {
                        "name": "--synchronous",
                        "content": "Use synchronous output.  With this option, gzip is less likely to lose data  during  a\nsystem crash, but it can be considerably slower.\n",
                        "long": "--synchronous"
                    },
                    {
                        "name": "-t --test",
                        "content": "Test. Check the compressed file integrity then quit.\n",
                        "flag": "-t",
                        "long": "--test"
                    },
                    {
                        "name": "-v --verbose",
                        "content": "Verbose.  Display the name and percentage reduction for each file compressed or decom‐\npressed.\n",
                        "flag": "-v",
                        "long": "--verbose"
                    },
                    {
                        "name": "-V --version",
                        "content": "Version. Display the version number and compilation options then quit.\n",
                        "flag": "-V",
                        "long": "--version"
                    },
                    {
                        "name": "-# --fast --best",
                        "content": "Regulate the speed of compression using the specified digit #, where -1 or --fast  in‐\ndicates  the  fastest compression method (less compression) and -9 or --best indicates\nthe slowest compression method (best compression).  The default compression  level  is\n-6 (that is, biased towards high compression at expense of speed).\n",
                        "long": "--best"
                    },
                    {
                        "name": "--rsyncable",
                        "content": "When you synchronize a compressed file between two computers, this option allows rsync\nto transfer only files that were changed in the archive instead of the entire archive.\nNormally, after a change is made to any file in the archive, the compression algorithm\ncan  generate a new version of the archive that does not match the previous version of\nthe archive. In this case, rsync transfers the entire new version of  the  archive  to\nthe  remote  computer.  With this option, rsync can transfer only the changed files as\nwell as a small amount of metadata that is required to update the archive structure in\nthe area that was changed.\n",
                        "long": "--rsyncable"
                    }
                ]
            },
            "ADVANCED USAGE": {
                "content": "Multiple compressed files can be concatenated. In this case, gunzip will extract all  members\nat once. For example:\n\ngzip -c file1  > foo.gz\ngzip -c file2 >> foo.gz\n\nThen\n\ngunzip -c foo\n\nis equivalent to\n\ncat file1 file2\n\nIn  case  of damage to one member of a .gz file, other members can still be recovered (if the\ndamaged member is removed). However, you can get better compression by compressing  all  mem‐\nbers at once:\n\ncat file1 file2 | gzip > foo.gz\n\ncompresses better than\n\ngzip -c file1 file2 > foo.gz\n\nIf you want to recompress concatenated files to get better compression, do:\n\ngzip -cd old.gz | gzip > new.gz\n\nIf  a  compressed file consists of several members, the uncompressed size and CRC reported by\nthe --list option applies to the last member only. If you need the uncompressed size for  all\nmembers, you can use:\n\ngzip -cd file.gz | wc -c\n\nIf  you  wish to create a single archive file with multiple members so that members can later\nbe extracted independently, use an archiver such as tar or zip. GNU tar supports the  -z  op‐\ntion to invoke gzip transparently. gzip is designed as a complement to tar, not as a replace‐\nment.\n",
                "subsections": []
            },
            "ENVIRONMENT": {
                "content": "The  obsolescent environment variable GZIP can hold a set of default options for gzip.  These\noptions are interpreted first and can be overwritten by explicit command line parameters.  As\nthis can cause problems when using scripts, this feature is supported only for  options  that\nare reasonably likely to not cause too much harm, and gzip warns if it is used.  This feature\nwill be removed in a future release of gzip.\n\nYou  can  use  an alias or script instead.  For example, if gzip is in the directory /usr/bin\nyou can prepend $HOME/bin to your PATH and create an executable  script  $HOME/bin/gzip  con‐\ntaining the following:\n\n#! /bin/sh\nexport PATH=/usr/bin\nexec gzip -9 \"$@\"\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "znew(1), zcmp(1), zmore(1), zforce(1), gzexe(1), zip(1), unzip(1), compress(1)\n\nThe  gzip file format is specified in P. Deutsch, GZIP file format specification version 4.3,\n<https://www.ietf.org/rfc/rfc1952.txt>, Internet RFC 1952 (May 1996).  The zip deflation for‐\nmat is specified in P. Deutsch, DEFLATE Compressed Data  Format  Specification  version  1.3,\n<https://www.ietf.org/rfc/rfc1951.txt>, Internet RFC 1951 (May 1996).\n",
                "subsections": []
            },
            "DIAGNOSTICS": {
                "content": "Exit  status  is  normally 0; if an error occurs, exit status is 1. If a warning occurs, exit\nstatus is 2.\n\nUsage: gzip [-cdfhklLnNrtvV19] [-S suffix] [file ...]\nInvalid options were specified on the command line.\n\nfile: not in gzip format\nThe file specified to gunzip has not been compressed.\n\nfile: Corrupt input. Use zcat to recover some data.\nThe compressed file has been damaged. The data up to the point of failure can  be  re‐\ncovered using\n\nzcat file > recover\n\nfile: compressed with xx bits, can only handle yy bits\nFile  was  compressed (using LZW) by a program that could deal with more bits than the\ndecompress code on this machine.  Recompress the file with gzip, which compresses bet‐\nter and uses less memory.\n\nfile: already has .gz suffix -- unchanged\nThe file is assumed to be already compressed.  Rename the file and try again.\n\nfile already exists; do you wish to overwrite (y or n)?\nRespond \"y\" if you want the output file to be replaced; \"n\" if not.\n\ngunzip: corrupt input\nA SIGSEGV violation was detected which usually means that the input file has been cor‐\nrupted.\n\nxx.x% Percentage of the input saved by compression.\n(Relevant only for -v and -l.)\n\n-- not a regular file or directory: ignored\nWhen the input file is not a regular file or directory, (e.g. a symbolic link, socket,\nFIFO, device file), it is left unaltered.\n\n-- has xx other links: unchanged\nThe input file has links; it is left unchanged.  See ln(1) for more  information.  Use\nthe -f flag to force compression of multiply-linked files.\n",
                "subsections": []
            },
            "CAVEATS": {
                "content": "When  writing compressed data to a tape, it is generally necessary to pad the output with ze‐\nroes up to a block boundary. When the data is read and the whole block is  passed  to  gunzip\nfor  decompression,  gunzip detects that there is extra trailing garbage after the compressed\ndata and emits a warning by default.  You can use the --quiet option to suppress the warning.\n",
                "subsections": []
            },
            "BUGS": {
                "content": "In some rare cases, the --best option gives worse compression than  the  default  compression\nlevel (-6). On some highly redundant files, compress compresses better than gzip.\n",
                "subsections": []
            },
            "REPORTING BUGS": {
                "content": "Report bugs to: bug-gzip@gnu.org\nGNU gzip home page: <https://www.gnu.org/software/gzip/>\nGeneral help using GNU software: <https://www.gnu.org/gethelp/>\n",
                "subsections": []
            },
            "COPYRIGHT NOTICE": {
                "content": "Copyright © 1998-1999, 2001-2002, 2012, 2015-2022 Free Software Foundation, Inc.\nCopyright © 1992, 1993 Jean-loup Gailly\n\nPermission  is  granted  to  make  and distribute verbatim copies of this manual provided the\ncopyright notice and this permission notice are preserved on all copies.\n\nPermission is granted to copy and distribute modified versions of this manual under the  con‐\nditions  for verbatim copying, provided that the entire resulting derived work is distributed\nunder the terms of a permission notice identical to this one.\n\nPermission is granted to copy and distribute translations of this manual  into  another  lan‐\nguage,  under  the above conditions for modified versions, except that this permission notice\nmay be stated in a translation approved by the Foundation.\n\nlocal                                        GZIP(1)",
                "subsections": []
            }
        }
    }
}