home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / packer / gzip / gzip.man < prev    next >
Encoding:
Text File  |  1994-02-03  |  11.4 KB  |  331 lines

  1.  
  2.  
  3.  
  4. GZIP(1)                                                   GZIP(1)
  5.  
  6.  
  7. NNAAMMEE
  8.        gzip, gunzip, zcat - compress or expand files
  9.  
  10. SSYYNNOOPPSSIISS
  11.        ggzziipp [ --ccddffhhLLrrttvvVV1199 ] [ _n_a_m_e _._._.  ]
  12.        gguunnzziipp [ --ccffhhLLrrttvvVV ] [ _n_a_m_e _._._.  ]
  13.        zzccaatt [ --hhLLVV ] [ _n_a_m_e _._._.  ]
  14.  
  15. DDEESSCCRRIIPPTTIIOONN
  16.        _G_z_i_p  reduces the size of the named files using Lempel-Ziv
  17.        coding (LZ77).  Whenever possible, each file  is  replaced
  18.        by  one with the extension ..zz,, while keeping the same own-
  19.        ership modes, access and modification times.  (The  exten-
  20.        sion  is  --zz for VMS, zz for MSDOS, OS/2 and Atari.)  If no
  21.        files are specified, the standard input is  compressed  to
  22.        the  standard  output.  If  the new file name is too long,
  23.        _g_z_i_p truncates it and keeps the original file name in  the
  24.        compressed file.  _G_z_i_p will only attempt to compress regu-
  25.        lar files.  In particular, it will ignore symbolic  links.
  26.  
  27.        Compressed  files  can  be restored to their original form
  28.        using _g_z_i_p _-_d or _g_u_n_z_i_p or _z_c_a_t_.
  29.  
  30.        _g_u_n_z_i_p takes a list of  files  on  its  command  line  and
  31.        replaces each file whose name ends with ..zz or ..ZZ or --zz and
  32.        which begins with the correct magic number with an  uncom-
  33.        pressed  file without the original extension.  _g_u_n_z_i_p also
  34.        recognizes the special extensions ..ttggzz and ..ttaazz as  short-
  35.        hands for ..ttaarr..zz or ..ttaarr..ZZ
  36.  
  37.        _g_u_n_z_i_p  can  currently  decompress  files created by _g_z_i_p_,
  38.        _z_i_p_, _c_o_m_p_r_e_s_s or _p_a_c_k_.  The detection of the input  format
  39.        is  automatic.   When  using the first two formats, _g_u_n_z_i_p
  40.        checks a 32 bit CRC. For _p_a_c_k_, _g_u_n_z_i_p  checks  the  uncom-
  41.        pressed  length.  The  _c_o_m_p_r_e_s_s format was not designed to
  42.        allow consistency checks. However _g_u_n_z_i_p is sometimes able
  43.        to  detect  a bad .Z file. If you get an error when uncom-
  44.        pressing a .Z file, do not assume that the .Z file is cor-
  45.        rect  simply because the standard _u_n_c_o_m_p_r_e_s_s does not com-
  46.        plain. This generally means that the  standard  _u_n_c_o_m_p_r_e_s_s
  47.        does  not  check  its input, and happily generates garbage
  48.        output.
  49.  
  50.        Files created by _z_i_p can be uncompressed by gzip  only  if
  51.        they  have a single member compressed with the 'deflation'
  52.        method. This feature is only intended to  help  conversion
  53.        of tar.zip files to the tar.z format. To extract zip files
  54.        with several members, use _u_n_z_i_p instead of _g_u_n_z_i_p_.
  55.  
  56.        _z_c_a_t is identical to _g_u_n_z_i_p --cc..  (On  some  systems,  _z_c_a_t
  57.        may be installed as _g_z_c_a_t to preserve the original link to
  58.        _c_o_m_p_r_e_s_s_._)  _z_c_a_t uncompresses either a list  of  files  on
  59.        the  command  line  or  its  standard input and writes the
  60.        uncompressed  data  on   standard   output.    _z_c_a_t   will
  61.  
  62.  
  63.  
  64.                               local                             1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. GZIP(1)                                                   GZIP(1)
  71.  
  72.  
  73.        uncompress  files  that  have  the  correct  magic  number
  74.        whether they have a ..zz suffix or not.
  75.  
  76.        _G_z_i_p uses the Lempel-Ziv algorithm used in _z_i_p and  PKZIP.
  77.        The  amount of compression obtained depends on the size of
  78.        the input and the distribution of common substrings.  Typ-
  79.        ically,  text such as source code or English is reduced by
  80.        60-70%.  Compression is generally much  better  than  that
  81.        achieved  by LZW (as used in _c_o_m_p_r_e_s_s), Huffman coding (as
  82.        used in _p_a_c_k), or adaptive Huffman coding (_c_o_m_p_a_c_t).
  83.  
  84.        Compression is always performed, even  if  the  compressed
  85.        file  is slightly larger than the original. The worst case
  86.        expansion is a few bytes for the gzip file header, plus  5
  87.        bytes every 32K block, or an expansion ratio of 0.015% for
  88.        large files.   _g_z_i_p  preserves  the  mode,  ownership  and
  89.        timestamps of files when compressing or decompressing.
  90.  
  91.  
  92. OOPPTTIIOONNSS
  93.        --cc ----ssttddoouutt
  94.               Write  output  on  standard  output;  keep original
  95.               files unchanged.  If there are several input files,
  96.               the  output consists of a sequence of independently
  97.               compressed members. To obtain  better  compression,
  98.               concatenate  all  input  files  before  compressing
  99.               them.
  100.  
  101.        --dd ----ddeeccoommpprreessss
  102.               Decompress.
  103.  
  104.        --ff ----ffoorrccee
  105.               Force compression or decompression even if the file
  106.               has   multiple  links  or  the  corresponding  file
  107.               already exists.  If --ff is not given, and  when  not
  108.               running  in  the background, _g_z_i_p prompts to verify
  109.               whether an existing file should be overwritten.
  110.  
  111.        --hh ----hheellpp
  112.               Display a help screen.
  113.  
  114.        --LL ----lliicceennssee
  115.               Display the _g_z_i_p license.
  116.  
  117.        --qq ----qquuiieett
  118.               Suppress all warnings.
  119.  
  120.        --rr ----rreeccuurrssee
  121.               Travel the directory structure recursively. If  any
  122.               of the file names specified on the command line are
  123.               directories, _g_z_i_p will descend into  the  directory
  124.               and  compress  all  the  files  it  finds there (or
  125.               decompress them in the case of _g_u_n_z_i_p ).
  126.  
  127.  
  128.  
  129.  
  130.                               local                             2
  131.  
  132.  
  133.  
  134.  
  135.  
  136. GZIP(1)                                                   GZIP(1)
  137.  
  138.  
  139.        --tt ----tteesstt
  140.               Test. Check the compressed file integrity.
  141.  
  142.        --vv ----vveerrbboossee
  143.               Verbose. Display the name and percentage  reduction
  144.               for each file compressed.
  145.  
  146.        --VV ----vveerrssiioonn
  147.               Version. Display the version number and compilation
  148.               options.
  149.  
  150.        --## ----ffaasstt ----bbeesstt
  151.               Regulate the speed of compression using the  speci-
  152.               fied  digit  _#,  where  --11  or ----ffaasstt indicates the
  153.               fastest compression method (less  compression)  and
  154.               --99  or  ----bbeesstt  indicates  the  slowest compression
  155.               method (optimal compression).  The default compres-
  156.               sion level is --55..
  157.  
  158. AADDVVAANNCCEEDD UUSSAAGGEE
  159.        Multiple  compressed  files  can  be concatenated. In this
  160.        case, _g_u_n_z_i_p will extract all members at once.  For  exam-
  161.        ple:
  162.  
  163.              gzip -c file1  > foo.z
  164.              gzip -c file2 >> foo.z Then
  165.              gunzip -c foo
  166.  
  167.        is equivalent to
  168.  
  169.              cat file1 file2
  170.  
  171.        In  case  of damage to one member of a .z file, other mem-
  172.        bers can still be recovered  (if  the  damaged  member  is
  173.        removed).  However, you can get better compression by com-
  174.        pressing all members at once:
  175.  
  176.              cat file1 file2 | gzip > foo.z
  177.  
  178.        compresses better than
  179.  
  180.              gzip -c file1 file2 > foo.z
  181.  
  182.        If you want to recompress concatenated files to get better
  183.        compression, do:
  184.  
  185.              zcat old.z | gzip > new.z
  186.  
  187. EENNVVIIRROONNMMEENNTT
  188.        The  environment  variable  GGZZIIPP can hold a set of default
  189.        options for _g_z_i_p_.  These options are interpreted first and
  190.        can  be  overwritten  by explicit command line parameters.
  191.        For example:
  192.              for sh:    GZIP="-8 -v"; export GZIP
  193.  
  194.  
  195.  
  196.                               local                             3
  197.  
  198.  
  199.  
  200.  
  201.  
  202. GZIP(1)                                                   GZIP(1)
  203.  
  204.  
  205.              for csh:   setenv GZIP "-8 -v"
  206.              for MSDOS: set GZIP=-8 -v
  207.  
  208.        On Vax/VMS,  the  name  of  the  environment  variable  is
  209.        GZIP_OPT,  to  avoid  a  conflict  with the symbol set for
  210.        invocation of the program.
  211.  
  212. SSEEEE AALLSSOO
  213.        znew(1), zcmp(1), zmore(1), zforce(1),  gzexe(1),  zip(1),
  214.        unzip(1), compress(1), pack(1), compact(1)
  215.  
  216. DDIIAAGGNNOOSSTTIICCSS
  217.        Exit status is normally 0; if an error occurs, exit status
  218.        is 1. If a warning occurs, exit status is 2.
  219.  
  220.        Usage: gzip [-cdfhLrtvV19] [file ...]
  221.                Invalid options  were  specified  on  the  command
  222.                line.
  223.        _f_i_l_e: not in gzip format
  224.                The  file  specified  to  _g_u_n_z_i_p has not been com-
  225.                pressed.
  226.        _f_i_l_e_: Corrupt input. Use zcat to recover some data.
  227.                The compressed file has been damaged. The data  up
  228.                to the point of failure can be recovered using
  229.                        zcat file > recover
  230.        _f_i_l_e: compressed with _x_x bits, can only handle _y_y bits
  231.                _F_i_l_e  was compressed (using LZW) by a program that
  232.                could deal with more _b_i_t_s than the decompress code
  233.                on  this  machine.  Recompress the file with gzip,
  234.                which compresses better and uses less memory.
  235.        _f_i_l_e: already has z suffix -- no change
  236.                The file is  assumed  to  be  already  compressed.
  237.                Rename the file and try again or use zcat.
  238.        _f_i_l_e already exists; do you wish to overwrite (y or n)?
  239.                Respond  "y"  if  you  want  the output file to be
  240.                replaced; "n" if not.
  241.        gunzip: corrupt input
  242.                A SIGSEGV violation  was  detected  which  usually
  243.                means that the input file has been corrupted.
  244.        _x_x_._x_%
  245.                Percentage  of  the  input  saved  by compression.
  246.                (Relevant only for --vv.)
  247.        -- not a regular file or directory: ignored
  248.                When the input file  is  not  a  regular  file  or
  249.                directory,  (e.g.  a  symbolic link, socket, FIFO,
  250.                device file), it is left unaltered.
  251.        -- has _x_x other links: unchanged
  252.                The input file has links; it  is  left  unchanged.
  253.                See _l_n(1) for more information. Use the --ff flag to
  254.                force compression of multiply-linked files.
  255.  
  256. CCAAVVEEAATTSS
  257.        The .z extension is already used by _p_a_c_k(1)_.  You can link
  258.        _g_z_i_p to _p_c_a_t to get transparent decompression for programs
  259.  
  260.  
  261.  
  262.                               local                             4
  263.  
  264.  
  265.  
  266.  
  267.  
  268. GZIP(1)                                                   GZIP(1)
  269.  
  270.  
  271.        expecting .z files to be in _p_a_c_k format.
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.                               local                             5
  329.  
  330.  
  331.