gzip

GZIP(1)                     General Commands Manual                    GZIP(1)



åå
       gzip, gunzip, zcat - ãã¡ã¤ã«ã®å§ç¸®ã»ä¼¸é·ãè¡ã

æ¸å¼
       gzip [ -acdfhlLnNrtvV19 ] [-S suffix] [ name ... ]
       gunzip [ -acfhlLnNrtvV ] [-S suffix] [ name ... ]
       zcat [ -fhLV ] [ name ... ]

説æ
       gzip 㯠Lempel-Ziv ã³ã¼ãã£ã³ã° (LZ77) ãå©ç¨ãã¦ã
       æå®ããããã¡ã¤ã«ã®ãµã¤ãºãå°ããããã åãã¡ã¤ã«ã¯ææ権ã»ã¢ã¯ã»ã¹æå»ã»ä¿®æ‐
       £æå»ãä¿åããã¾ã¾ã æ¡å¼µå .gz ãã¤ãããã¡ã¤ã«ã«ç½®ãæããããã (ããã©ã«ãã®æ¡å¼µå‐
       ã¯ãVMSã§ã¯ -gz, MSDOS, OS/2 FAT, Windows NT FAT, Atari ã§ã¯ z ã§ããã)
       ãã¡ã¤ã«ãæå®ãããªãå ´åãã¾ãã¯ãã¡ã¤ã«åã "-" ã®å ´åã
       æ¨æºå¥åãå§ç¸®ãã¦æ¨æºåºåã«æ¸ãåºãã gzip ã¯é常ã®ãã¡ã¤ã«ããå§ç¸®ãããã¨ããªãã
       ç¹ã«ãã·ã³ããªãã¯ãªã³ã¯ã¯ç¡è¦ãããã

       å§ç¸®ããããã¡ã¤ã«åãããã®ãã¡ã¤ã«ã·ã¹ãã ä¸ã§ã¯é·ãããå ´åã gzip
       ã¯ãã¡ã¤ã«åãåãè©°ããã gzip ã¯ãã¡ã¤ã«åã®ãã¡ã® 4 æå‐
       以ä¸ã®ãã¼ããåãè©°ãããã¨ããã (åãã¼ãã¯ãããã§åºåããã¦ããã)
       å°ããªãã¼ãã ããããã¡ã¤ã«åãã§ãã¦ããå ´åã ãã£ã¨ãé·ããã¼ããåãè©°ããããã
       ä¾ãã°ããã¡ã¤ã«åã 14 æåã¾ã§ã«å¶éããã¦ããå ´åã gzip.msdos.exe ã¯
       gzi.msd.exe.gz ã¨ããååã§å§ç¸®ãããã ãã¡ã¤ã«åã®é·ãã«å¶éããªãã·ã¹ãã ã§ã¯ã
       ãã¡ã¤ã«åãåãè©°ãããããã¨ã¯ãªãã

       ããã©ã«ãã§ã¯ã gzip ã¯å§ç¸®ãã¡ã¤ã«ã®ä¸ã«åãã¡ã¤ã«ã®ååã¨ã¿ã¤ã ã¹ã¿ã³ããä¿å‐
       ããã ãããã®æå ±ã¯ãã¡ã¤ã«ã -N ãªãã·ã§ã³ã§ä¼¸é·ããã¨ãã«ä½¿ãããã
       ããã¯ãå§ç¸®ããããã¡ã¤ã«ã®ååãåãè©°ããããå ´åãã
       ãã¡ã¤ã«è»¢éã®å¾ã§ã¿ã¤ã ã¹ã¿ã³ããä¿åãããªãã£ãå ´åã«å½¹ç«ã¤ã

       å§ç¸®ããããã¡ã¤ã«ã¯ gzip -d, gunzip, zcat ã使ãã¨åã®å½¢ã«å¾©åãããã¨ãã§ããã
       å§ç¸®ãã¡ã¤ã«ã«ä¿åãããåãã¡ã¤ã«ã®ååããã¡ã¤ã«ã·ã¹ãã ã«é©åããªãå ´åã
       ãã®ãã¡ã¤ã«ã·ã¹ãã ã«é©åããããã«åã®ååããæ°ããååãä½ãããã

       gunzip ã¯ããã¡ã¤ã«åã .gz, -gz, .z, -z, _z (大æåå°æåã¯åºå¥ããªã)
       ã§çµãã£ã¦ããã æ£ãããã¸ãã¯ãã³ãã¼ã§å§ã¾ã£ã¦ãããã¡ã¤ã«ã®ãªã¹ãã
       ã³ãã³ãã©ã¤ã³ããåãåãã 伸é·ãããã¡ã¤ã«ã«ç½®ãæããããã®ã¨ãå§ç¸®ãã¡ã¤ã«ã®æ¡å¼µå‐
       ã¯åãé¤ãããã gunzip 㯠.tgz 㨠.taz ã¨ããç¹å¥ãªæ¡å¼µåãèªèããã ãããã¯ããããã
       .tar.gz 㨠.tar.Z ã®çç¥å½¢ã§ããã å§ç¸®ããã¨ãã« .tar ã¨ããæ¡å¼µå‐
       ããã¤ãã¡ã¤ã«ã®ååãåãè©°ããå¿è¦ããããªãã gzip ã¯ãããã« .tgz ã¨ããæ¡å¼µåã使ãã

       gunzip 㯠gzip, zip, compress, compress -H, pack ã§ä½ããããã¡ã¤ã«ãæ‐
       £ãã伸é·ã§ããã å¥åå½¢å¼ã®æ¤ç¥ã¯èªåçã«è¡ãããã ã¯ããã® 2
       ã¤ã®å½¢å¼ã使ã£ãå ´åã gunzip 㯠32 ãããã® CRC ããã§ãã¯ããã pack
       ã«å¯¾ãã¦ãgunzip ã¯ä¼¸é·ããé·ãããã§ãã¯ããã æ¨æºç㪠compress
       å½¢å¼ã¯ãæ´åæ§ãã§ãã¯ãããããã«ã¯è¨è¨ããã¦ããªãã ãããã gunzip ã¯å£ãã .Z
       ãã¡ã¤ã«ãæ¤ç¥ãããã¨ãã§ããå ´åãããã.Z ãã¡ã¤ã«ã
       伸é·ãã¦ããã¨ãã«ã¨ã©ã¼ãåºãã¨ãã«ã¯ã åã«æ¨æºã® uncompress
       ãã¨ã©ã¼ãåºããªãã¨ããçç±ã§ .Z ãã¡ã¤ã«ãæ£ããã¨èãã¦ã¯ãªããªãã
       ä¸è¬çã«ããã¨ãæ¨æºç㪠uncompress
       ã¯å¥åããã§ãã¯ãããè³å¤©æ°ã«ã´ããåºåãã¦ãã¾ããã¨ãããã SCO ã® compress -H å½¢å¼
       (lzh å§ç¸®æ³) 㯠CRC ãå«ãã§ããªãããããã¤ãã®æ´åæ§ãã§ãã¯ãã§ããã

       zip ã«ãã£ã¦ä½ããããã¡ã¤ã«ã¯ã'deflation' æ³ã§å§ç¸®ãããåãã¡ã¤ã«ã 1 ã¤ãã
       å«ã¾ãªãå ´åã«ã ããgzip ã§ä¼¸é·ãããã¨ãã§ããããã®ç¹å¾´ã¯ãtar.zip ãã¡ã¤ã«ã
       tar.gz å½¢å¼ã¸å¤æããéã®è£å©ã¨ãªããã¨ã ããæå³ãã¦ããã åãã¡ã¤ã«ã 1 ã¤ã ãã® zip
       ãã¡ã¤ã«ã伸é·ããã«ã¯ãgunzip <foo.zip ã gunzip -S .zip foo.zip
       ã¨ãã£ãã³ãã³ãã使ç¨ããã è¤æ°ã®åãã¡ã¤ã«ãå«ãã§ãã zip ãã¡ã¤ã«ã伸é·ããããã«ã¯ã
       gunzip ã§ã¯ãªã unzip ã使ããã¨ã

       zcat 㯠gunzip -c ã¨åä¸ã§ããã (compress ã¸ã®ãªãªã¸ãã«ã®ãªã³ã¯ãä¿åããããã«ã
       zcat ã gzcat ã¨ãã¦ã¤ã³ã¹ãã¼ã«ããã¦ããã·ã¹ãã ããããããããªãã)  zcat
       ã¯ã³ãã³ãã©ã¤ã³ã§æ示ããããã¡ã¤ã«ã®ãªã¹ãã¾ãã¯æ¨æºå¥åã伸é·ãã
       伸é·ãããã¼ã¿ãæ¨æºåºåã«æ¸ãåºãã zcat ã¯ãã¡ã¤ã«ã .gz ã¨ããæ¡å¼µå‐
       ã§ãããã©ãããããã æ£ãããã¸ãã¯ãã³ãã¼ãæã£ã¦ãããã¡ã¤ã«ã§ããã°ä¼¸é·ãããã¨ããã

       gzip 㯠zip 㨠PKZIP ã§ä½¿ããã¦ãã Lempel-Ziv ã¢ã«ã´ãªãºã ã使ãã
       å¾ãããå§ç¸®éã¯ãå¥åã®ãµã¤ãºã¨å±éã®é¨åãã¼ã¿åã®åå¸ã«ä¾åããã
       ä¸è¬ã«ãã½ã¼ã¹ã³ã¼ããè±æã¨ãã£ãããã¹ãã§ã¯ 60-70% å°ãããªãã (compress
       ã«ä½¿ããã¦ãã) LZWã» (pack ã«ä½¿ããã¦ãã) Huffman ã³ã¼ãã£ã³ã°ã» (compact
       ã«ä½¿ããã¦ãã) é©å¿ Huffman ã³ã¼ãã£ã³ã°ã
       ãããã«ããå§ç¸®ã«æ¯ã¹ã¦ããã®å§ç¸®çã¯ä¸è¬ã«ããªãè¯ãã

       ãã¨ãå§ç¸®ããããã¡ã¤ã«ãåãã¡ã¤ã«ããå°ã大ãããªãã¨ãã¦ãã å§ç¸®ã¯å¸¸ã«è¡ãããã
       ææªã®å ´åãgzip ãã¡ã¤ã«ãããã®ããã®æ°ãã¤ã㨠32K ãã¤ããããã¯æ¯ã« 5
       ãã¤ãã®å¢å ã¨ãªãã 大ããªãã¡ã¤ã«ã§ã¯ 0.015% ã®å¢å çã¨ãªãã
       ãã ãå®éã®ä½¿ç¨ãã£ã¹ã¯ãããã¯æ°ã¯ã ã»ã¨ãã©çµ¶å¯¾ã«å¢å ããªãã gzip
       ã¯å§ç¸®ã»ä¼¸é·æã«ãã¡ã¤ã«ã®ã¢ã¯ã»ã¹æ¨©ã»ææèã»ã¿ã¤ã ã¹ã¿ã³ããä¿åããã

       gzip ãã¡ã¤ã«å½¢å¼ã¯ P. Deutsch, GZIP file format specification version
       4.3, <ftp://ftp.isi.edu/in-notes/rfc1952.txt>, Internet RFC 1952 (May
       1996)ã§è¦å®ããã¦ãããzip deflation å½¢å¼ã¯ P. Deutsch, DEFLATE Compressed
       Data Format Specification version 1.3,
       <ftp://ftp.isi.edu/in-notes/rfc1951.txt>, Internet RFC 1951 (May 1996)
       ã§è¦å®ããã¦ããã


ãªãã·ã§ã³
       -a --ascii
              ã¢ã¹ãã¼ããã¹ãã¢ã¼ãï¼å±æå¤æã使ã£ã¦è¡æ«ã®å¤æãããã
              ãã®ãªãã·ã§ã³ã¯ããã¤ãã®é Unix ã·ã¹ãã ã§ãµãã¼ãããã¦ããã MSDOS
              ã§ã¯ãå§ç¸®æã« CR LF ã LF ã«å¤æããã 伸é·æã« LF ã CR LF ã«å¤æãããã

       -c --stdout --to-stdout
              åºåãæ¨æºåºåã«æ¸ãåºããåãã¡ã¤ã«ãå¤æ´ããªãã
              å¥åãã¡ã¤ã«ãè¤æ°ããå ´åãåºåã¯ãã¡ã¤ã«æ¯ã«å§ç¸®ããããã®ã¨ãªãã
              å§ç¸®çãä¸ããã«ã¯ãå§ç¸®ããåã«ãã¹ã¦ã®å¥åãã¡ã¤ã«ã (tar ãªã©ã§)
              ã¾ã¨ãããã¨ã

       -d --decompress --uncompress
              伸é·ããã

       -f --force
              ãã¡ã¤ã«ãè¤æ°ã®ãªã³ã¯ãå¼µããã¦ãããã 対å¿ãããã¡ã¤ã«ãæ¢ã«åå¨ãã¦ãããã
              å§ç¸®ããããã¼ã¿ã端æ«ã«å¯¾ãã¦èªã¿æ¸ãããã¦ãã¦ãããããªå ´åã§ãã
              å¼·å¶çã«å§ç¸®ã»ä¼¸é·ãè¡ãã å¥åãã¼ã¿ã gzip ã§èªèã§ããªãå½¢å¼ã®ã¨ãã«
              --stdout ãªãã·ã§ã³ãæå®ããã¦ããã¨ã
              å¥åãã¼ã¿ã¯å¤æ´ãªãã«æ¨æºåºåã«ã³ãã¼ãããã ã¤ã¾ãã zcat ã cat
              ã¨ãã¦åä½ãããã -f ãæå®ãããããã¤ããã¯ã°ã©ã¦ã³ãã§åä½ãã¦ããªãå ´åã gzip
              ã¯æ¢ã«åå¨ãããã¡ã¤ã«ãä¸æ¸ãããããåãåãããããã³ãããåºãã

       -h --help
              ãã«ãç»é¢ã表示ãã¦çµäºããã

       -l --list
              å§ç¸®ãããåãã®ãã¡ã¤ã«ã«ã¤ãã¦ã以ä¸ã®ãã£ã¼ã«ããåæããã

                  compressed size: å§ç¸®ããããã¡ã¤ã«ã®ãµã¤ãº
                  uncompressed size: 伸é·ããããã¡ã¤ã«ã®ãµã¤ãº
                  ratio: å§ç¸®ç (ä¸æã®å ´å㯠0.0%)
                  uncompressed_name: 伸é·ããããã¡ã¤ã«ã®åå

              compress ã§ã¤ãããã .Z ãã¡ã¤ã«ã®ããã«ã gzip
              å½¢å¼ã§ãªããã¡ã¤ã«ã®ä¼¸é·æãµã¤ãºã¯ -1 ã«ãããã
              ãã®ãããªãã¡ã¤ã«ã«ã¤ãã¦ä¼¸é·ããããã¡ã¤ã«ã®ãµã¤ãºãæ±ããå ´åã¯ã

                  zcat file.Z | wc -c

              ã使ããã¨ã--verbose ãªãã·ã§ã³ã¨çµã¿åãããã¨
              以ä¸ã®ãã£ã¼ã«ãã表示ãããã

                  method: å§ç¸®æ³
                  crc: 伸é·ããããã¼ã¿ã® 32 ããã CRC
                  date & time: 伸é·ããããã¡ã¤ã«ã®ã¿ã¤ã ã¹ã¿ã³ã

              ç¾å¨ãµãã¼ãããã¦ããå§ç¸®æ³ã¯ãdeflate, compress, lzh (SCO compress
              -H), pack ã§ããã gzip å½¢å¼ã§ãªããã¡ã¤ã«ã«ã¤ãã¦ãcrc 㯠ffffffff
              ã¨ãããã

              --name ãåæã«æå®ãããã¨ã(ããè¨é²ããã¦ãããªã)
              伸é·ããããã¡ã¤ã«ã®ååã»æ¥ä»ã»æå»ã¯
              å§ç¸®ãã¡ã¤ã«åã«è¨é²ããã¦ãããã®ã«ãªãã

              --verbose ãåæã«æå®ãããã¨ãã©ããã®ãã¡ã¤ã«ã®ãµã¤ãºãä¸æã§ãªãéãã
              ãµã¤ãºã®åè¨ã¨ãã®å§ç¸®çã表示ãããã --quiet
              ãåæã«æå®ãããã¨ãã¿ã¤ãã«ã¨åè¨ã®è¡ã¯è¡¨ç¤ºãããªãã

       -L --license
              gzip ã®ã©ã¤ã»ã³ã¹ã表示ãã¦çµäºããã

       -n --no-name
              ããã©ã«ãã§ã¯ãå§ç¸®æã«åãã¡ã¤ã«ã®ååã¨ã¿ã¤ã ã¹ã¿ã³ããä¿åãããªãã
              (åã®ååãåãè©°ããå¿è¦ãããå ´åã¯ãåã®ååã¯å¿ãä¿åãããã)
              伸é·æã«ãåã®ãã¡ã¤ã«åãåå¨ãã¦ã復åãã (å§ç¸®ãã¡ã¤ã«åãã gzip æ¡å¼µå‐
              ãåãé¤ãã ãã¨ã)ã åãã¡ã¤ã«ã®ã¿ã¤ã ã¹ã¿ã³ããåå¨ãã¦ã復åããªã
              (å§ç¸®ãã¡ã¤ã«ããã³ãã¼ãã)ã ãã®ãªãã·ã§ã³ã¯ä¼¸é·æã®ããã©ã«ãã§ããã

       -N --name
              å§ç¸®æã«åãã¡ã¤ã«ã®ååã¨ã¿ã¤ã ã¹ã¿ã³ããä¿åããã ãããããã©ã«ãã§ããã
              伸é·æã«åãã¡ã¤ã«ã®ååã¨ã¿ã¤ã ã¹ã¿ã³ããåå¨ãããªã復åããã
              ãã®ãªãã·ã§ã³ã¯ããã¡ã¤ã«åã®é·ãã«å¶éãããã·ã¹ãã ãã
              ãã¡ã¤ã«è»¢éã®å¾ã«ã¿ã¤ã ã¹ã¿ã³ãã失ãããå ´åã«å½¹ç«ã¤ã

       -q --quiet
              ãã¹ã¦ã®è¦åãæå¶ããã

       -r --recursive
              ãã£ã¬ã¯ããªæ§é ãå帰çã«å·¡ãã
              ã³ãã³ãã©ã¤ã³ã§æå®ããããã¡ã¤ã«åããã£ã¬ã¯ããªã§ãã£ãå ´åã gzip
              ã¯ãã£ã¬ã¯ããªã«éãã¦ãè¦ã¤ãã£ããã¹ã¦ã®ãã¡ã¤ã«ãå§ç¸®ãã (gunzip
              ã®å ´åã¯ããã¹ã¦ã®ãã¡ã¤ã«ã伸é·ãã)ã

       -S .suf --suffix .suf
              æ¡å¼µå .gz ã®ãããã« .suf ã使ãã ã©ã®ãããªæ¡å¼µå‐
              ã§ãæå®ãããã¨ãã§ãããã.z 㨠.gz 以å¤ã®æ¡å¼µå㯠使ãã¹ãã§ãªãã
              ä»ã®ã·ã¹ãã ã«ãã¡ã¤ã«ã転éãããã¨ãã®æ··ä¹±ãé¿ããããã§ããã æ¡å¼µå‐
              ãªãã®å ´åã以ä¸ã®ããã«æ¡å¼µåã«é¢ä¿ãªãã ãã¹ã¦ã®æ示ããããã¡ã¤ã«ã
              gunzip ã«ä¼¸é·ããããã¨ãã§ããã

                  gunzip -S "" *       (MSDOS ã®å ´å㯠*.*)

              åã®ãã¼ã¸ã§ã³ã® gzip ã¯æ¡å¼µå .z ã使ã£ãã ãã㯠pack(1)
              ã¨ã®è¡çªãé¿ããããã«å¤æ´ãããã

       -t --test
              ãã¹ããããå§ç¸®ãã¡ã¤ã«ã®æ´åæ§ããã§ãã¯ããã

       -v --verbose
              詳細åºåãå§ç¸®ã»ä¼¸é·ãããåãã¡ã¤ã«ã«ã¤ãã¦ååã¨å§ç¸®çã表示ããã

       -V --version
              ãã¼ã¸ã§ã³ããã¼ã¸ã§ã³çªå·ã¨ã³ã³ãã¤ã«ãªãã·ã§ã³ã表示ãã¦çµäºããã

       -# --fast --best
              æå®ããæ°å # ãç¨ãã¦å§ç¸®ã®ã¹ãã¼ãã調æ´ããã -1 㨠--fast
              ã¯æãéãå§ç¸®æ³ã示ã (å§ç¸®çã¯ä½ã)ã -9 㨠--best
              ã¯æãéãå§ç¸®æ³ã示ã (å§ç¸®çã¯æãé«ã)ã ããã©ã«ãã®å§ç¸®ã¬ãã«ã¯ -6
              ã§ãã (ã¤ã¾ããéããç ç²ã«ãã¦å§ç¸®çã®è¯ãæ¹ã«ãã¦ãã)ã

é«åº¦ãªä½¿ç¨æ³
       è¤æ°ã®å§ç¸®ãã¡ã¤ã«ãé£çµãããã¨ãã§ããã ãã®å ´åã gunzip
       ã¯ãã¹ã¦ã®å§ç¸®ãã¡ã¤ã«ãä¸åº¦ã«ä¼¸é·ããããã¨ãã°ã

             gzip -c file1  > foo.gz
             gzip -c file2 >> foo.gz

       ã®å¾ã«

             gunzip -c foo

       ã¨ããã®ã¯ã以ä¸ã¨åãã§ããã

             cat file1 file2

       .gz ãã¡ã¤ã«ã®ãã¡ 1 ã¤ã®ãã¡ã¤ã«ãå£ãã¦ãã (å£ãããã¡ã¤ã«ãåé¤ããã°)
       ä»ã®ãã¡ã¤ã«ã¯ã¾ã å復ã§ããã
       ãããã次ã®ããã«ãã¹ã¦ã®ãã¡ã¤ã«ãä¸åº¦ã«å§ç¸®ããã°ãããé«ãå§ç¸®ãå¾ãããã

             cat file1 file2 | gzip > foo.gz

       ããã¯ä¸ã®ä¾ããé«ãå§ç¸®ã§ããã

             gzip -c file1 file2 > foo.gz

       ããé«ãå§ç¸®ãå¾ãããã«ãçµåããããã¡ã¤ã«ãããä¸åº¦å§ç¸®ããã«ã¯ã 次ã®ããã«ãããã¨ã

             gzip -cd old.gz | gzip > new.gz

       å§ç¸®ãã¡ã¤ã«ãè¤æ°ã®åãã¡ã¤ã«ã§æ§æããã¦ããå ´åã --list
       ãªãã·ã§ã³ã§è¡¨ç¤ºããã伸é·æã®ãµã¤ãºã¨ CRC ã¯ã
       æå¾ã®åãã¡ã¤ã«ã«ã¤ãã¦ã®ã¿é©ç¨ããããã®ã§ããã
       ãã¹ã¦ã®åãã¡ã¤ã«ã«ã¤ãã¦ä¼¸é·æã®ãµã¤ãºãå¿è¦ãªå ´åã¯ã 次ã®ã³ãã³ãã使ããã¨ã

             gzip -cd file.gz | wc -c

       è¤æ°ã®åãã¡ã¤ã«ãããªã 1 ã¤ã®æ¸åº«ãã¡ã¤ã«ãä½ã£ã¦ã
       å¾ããåãã¡ã¤ã«ãå¥ãã«ä¼¸é·ã§ããããã«ããããªãã tar ã zip
       ã¨ãã£ãã¢ã¼ã«ã¤ãã¼ã使ããã¨ã GNU tar 㯠gzip ãééçã«èµ·åããããã« -z
       ãªãã·ã§ã³ããµãã¼ããã¦ããã gzip 㯠tar ã®ä»£ç¨ã¨ãã¦ã§ã¯ãªããè£å©ã¨ãã¦è¨‐
       è¨ããã¦ããã

ç°å¢å¤æ°
       ç°å¢å¤æ° GZIP ã« gzip ã®ããã©ã«ãã®ãªãã·ã§ã³ã»ãããå¥ãããã¨ãã§ããã
       ãããã®ãªãã·ã§ã³ã¯æåã«è§£éãããã®ã§ã
       æ示çãªã³ãã³ãã©ã¤ã³ãã©ã¡ã¼ã¿ã§ä¸æ¸ããããã¨ãã§ããã ä¾ã示ãã
             sh ã®å ´å:    GZIP="-8v --name"; export GZIP
             csh ã®å ´å:   setenv GZIP "-8v --name"
             MSDOS ã®å ´å: set GZIP=-8v --name

       Vax/VMS ã§ã¯ãç°å¢å¤æ°ã®åå㯠GZIP_OPT ã§ããã ããã¯ããã‐
       ã°ã©ã ãå¼ã³åºãããã®ã·ã³ãã«ã»ããã¨ã®è¡çªãé¿ããããã§ããã

é¢é£é ç®
       znew(1), zcmp(1), zmore(1), zforce(1), gzexe(1), zip(1), unzip(1),
       compress(1), pack(1), compact(1)

       gzip ãã¡ã¤ã«å½¢å¼ã¯ P. Deutsch, GZIP file format specification version
       4.3, <ftp://ftp.isi.edu/in-notes/rfc1952.txt>, Internet RFC 1952 (May
       1996) ã§è¦å®ããã¦ãããzip deflation å½¢å¼ã¯ P. Deutsch, DEFLATE Compressed
       Data Format Specification version 1.3,
       <ftp://ftp.isi.edu/in-notes/rfc1951.txt>, Internet RFC 1951 (May 1996)
       ã§è¦å®ããã¦ããã

è¿ãå¤
       é常ãçµäºç¶æ㯠0 ã§ããã ã¨ã©ã¼ãèµ·ããå ´åãçµäºç¶æ㯠1 ã§ããã è‐
       ¦åãèµ·ããå ´åãçµäºç¶æ㯠2 ã§ããã

       Usage: gzip [-cdfhlLnNrtvV19] [-S suffix] [file ...]
              ç¡å¹ãªãªãã·ã§ã³ãã³ãã³ãã©ã¤ã³ããæå®ãããã

       file: not in gzip format
              gunzip ã«æ示ããããã¡ã¤ã«ãå§ç¸®ããããã®ã§ã¯ãªãã

       file: Corrupt input. Use zcat to recover some data.
              å§ç¸®ããããã¡ã¤ã«ãå£ãã¦ããã
              ç ´æããä½ç½®ã¾ã§ã®ãã¼ã¿ã¯ã次ã®ã³ãã³ãã使ã£ã¦ä¿®å¾©ã§ããã

                    zcat file > recover

       file: compressed with xx bits, can only handle yy bits
              ãã¡ã¤ã« ãããã®ãã·ã³ä¸ã§ã®ä¼¸é·ã³ã¼ãããå¤ãã® ããã ãæ±ããã¨ãã§ãããã‐
              ã°ã©ã 㧠(LZW ã使ã£ã¦) å§ç¸®ããã¦ããã
              ããé«ãå§ç¸®ãã§ããã¡ã¢ãªä½¿ç¨éã®å°ãªããgzip ã使ã£ã¦
              ãã¡ã¤ã«ãåå§ç¸®ãããã¨ã

       file: already has .gz suffix -- no change
              ãã¡ã¤ã«ãæ¢ã«å§ç¸®ããã¦ããã¨èããããã ãã¡ã¤ã«åãå¤æ´ããå度試ã¿ããã¨ã

       file already exists; do you wish to overwrite (y or n)?
              åºåãã¡ã¤ã«ã§ç½®ãæããããªã "y" ã¨çãããã¨ã ãããªããã°ã"n" ã¨çãããã¨ã

       gunzip: corrupt input
              SIGSEGV éåãæ¤ç¥ããããé常ã¯ãå¥åãã¡ã¤ã«ãå£ãã¦ãããã¨ãæå³ãã¦ããã

       xx.x% å§ç¸®ã«ããç¯ç´ãããå¥åã®ãã¼ã»ã³ã表示ã
              (-v 㨠-l ã®ã¿ã«é¢é£ããã)

       -- not a regular file or directory: ignored
              å¥åãã¡ã¤ã«ãé常ãã¡ã¤ã«ã§ããã£ã¬ã¯ããªã§ããªãå ´å
              (ãã¨ãã°ãã·ã³ããªãã¯ãªã³ã¯ã»ã½ã±ããã»FIFOã»ããã¤ã¹ãã¡ã¤ã«ã®å ´å)ã
              å¤æ´ããã«ãã®ã¾ã¾ã«ãããã

       -- has xx other links: unchanged
              å¥åãã¡ã¤ã«ã«ãªã³ã¯ãå¼µããã¦ããã®ã§ãå¤æ´ããªãã 詳ããæå ±ã¯ ln(1)
              ãåç§ãããã¨ã è¤æ°ã«ãªã³ã¯ãå¼µããã¦ãããã¡ã¤ã«ãå¼·å¶çã«å§ç¸®ããã«ã¯ -f
              ãã©ã°ã使ããã¨ã

éè¦ãªæ³¨æ
       å§ç¸®ããããã¼ã¿ããã¼ãã«æ¸ãè¾¼ãã¨ãã¯ã ä¸è¬çã«ãåºåã®ãããã¯å¢çãã¼ã‐
       ã§åããå¿è¦ãããã 伸é·ã®ããã«ãã¼ã¿ãèªã¿è¾¼ãã§ãã¹ã¦ã®ãããã¯ã gunzip ã«æ¸¡ãã¨ã
       gunzip ã¯é常ãå§ç¸®ããããã¼ã¿ã®å¾ãã«ä½åãªã´ããç¶ãã¦ããã¨æ¤ç¥ãã¦ã è¦åãçºããã
       ãã®è¦åãæå¶ããã«ã¯ --quiet ãªãã·ã§ã³ã使ãå¿è¦ãããã ãã®ãªãã·ã§ã³ã¯ç°å¢å¤æ°
       GZIP ã«æ¬¡ã®ããã«ãã¦è¨å®ã§ããã
         sh ã®å ´å:  GZIP="-q"  tar -xfz --block-compress /dev/rst0
         csh ã®å ´å: (setenv GZIP -q; tar -xfz --block-compress /dev/rst0

       ä¸ã®ä¾ã§ã¯ãgzip 㯠GNU tar ã® -z ãªãã·ã§ã³ã«ãã£ã¦æã«å¼ã³åºããã¦ããã
       ãã¼ãä¸ã®å§ç¸®ããããã¼ã¿ã®èªã¿åºãã¨æ¸ãè¾¼ã¿ã« åããããã¯ãµã¤ãº (tar ã® -b
       ãªãã·ã§ã³) ã使ããã¦ãããã¨ã«æ³¨æãããã¨ã (ãã®ä¾ã¯ãGNU çã® tar
       ã使ããã¨ãä»®å®ãã¦ããã)

ãã°
       gzip å½¢å¼ã§ã¯ãå¥åãµã¤ãºã¯ 2^32 ã®ä½ãã§è¡¨ç¾ãããããã --list ãªãã·ã§ã³
       ã«ãã表示ã§ã¯ãå§ç¸®åã®ãã¡ã¤ã«ã 4GB 以ä¸ã®å ´åãå§ç¸®åã®ãµã¤ãºãå§ç¸®çã
       æ£ãã表示ãããªãã以ä¸ã®ã³ãã³ãã使ãã¨ããã®åé¡ã«æµè§¦ããã«ã
       大ããªå§ç¸®ãã¡ã¤ã«ã®æ¬å½ã®ãµã¤ãºãç¥ããã¨ãã§ããã

             zcat file.gz | wc -c

       å§ç¸®ãã¡ã¤ã«ãã·ã¼ã¯ããµãã¼ããã¦ããªãã¡ãã£ã¢ä¸ã«åå¨ããå ´åã --list
       ãªãã·ã§ã³ã«ãã表示ã¯ã ãµã¤ãºã -1ãcrc ã ffffffff ã¨ãªãã

       ç¨ã« --best ãªãã·ã§ã³ã«ãã£ã¦ãããã©ã«ãã®å§ç¸®ã¬ãã« (-6) ãã
       å§ç¸®ãæªããªããã¨ãããã é常ã«åé·ãªãã¡ã¤ã«ã§ã¯ã compress ã«ããå§ç¸®ã gzip
       ããè¯ããªããã¨ãããã

èä½æ¨©è¡¨ç¤º
       Copyright © 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
       Copyright © 1992, 1993 Jean-loup Gailly

       Permission is granted to make and distribute verbatim copies of this
       manual provided the copyright notice and this permission notice are
       preserved on all copies.

       Permission is granted to copy and distribute modified versions of this
       manual under the conditions for verbatim copying, provided that the
       entire resulting derived work is distributed under the terms of a
       permission notice identical to this one.

       Permission is granted to copy and distribute translations of this
       manual into another language, under the above conditions for modified
       versions, except that this permission notice may be stated in a
       translation approved by the Foundation.



                                     local                             GZIP(1)