home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / gzip-1.2.4-bin.lha / info / gzip.info (.txt)
GNU Info File  |  1996-10-12  |  35KB  |  626 lines

  1. This is Info file gzip.info, produced by Makeinfo-1.64 from the input
  2. file /ade-src/fsf/gzip/gzip.texi.
  3.    This file documents the the GNU `gzip' command for compressing files.
  4.    Copyright (C) 1992-1993 Jean-loup Gailly
  5.    Permission is granted to make and distribute verbatim copies of this
  6. manual provided the copyright notice and this permission notice are
  7. preserved on all copies.
  8.    Permission is granted to copy and distribute modified versions of
  9. this manual under the conditions for verbatim copying, provided that
  10. the entire resulting derived work is distributed under the terms of a
  11. permission notice identical to this one.
  12.    Permission is granted to copy and distribute translations of this
  13. manual into another language, under the above conditions for modified
  14. versions, except that this permission notice may be stated in a
  15. translation approved by the Foundation.
  16. File: gzip.info,  Node: Top,  Up: (dir)
  17.    This file documents the `gzip' command to compress files.
  18. * Menu:
  19. * Copying::        How you can copy and share `gzip'.
  20. * Overview::        Preliminary information.
  21. * Sample::        Sample output from `gzip'.
  22. * Invoking gzip::    How to run `gzip'.
  23. * Advanced usage::    Concatenated files.
  24. * Environment::        The `GZIP' environment variable
  25. * Tapes::               Using `gzip' on tapes.
  26. * Problems::        Reporting bugs.
  27. * Concept Index::    Index of concepts.
  28. File: gzip.info,  Node: Copying,  Next: Overview,  Up: Top
  29. GNU GENERAL PUBLIC LICENSE
  30. **************************
  31.                          Version 2, June 1991
  32.      Copyright (C) 1989, 1991 Free Software Foundation, Inc.
  33.      675 Mass Ave, Cambridge, MA 02139, USA
  34.      
  35.      Everyone is permitted to copy and distribute verbatim copies
  36.      of this license document, but changing it is not allowed.
  37. Preamble
  38. ========
  39.    The licenses for most software are designed to take away your
  40. freedom to share and change it.  By contrast, the GNU General Public
  41. License is intended to guarantee your freedom to share and change free
  42. software--to make sure the software is free for all its users.  This
  43. General Public License applies to most of the Free Software
  44. Foundation's software and to any other program whose authors commit to
  45. using it.  (Some other Free Software Foundation software is covered by
  46. the GNU Library General Public License instead.)  You can apply it to
  47. your programs, too.
  48.    When we speak of free software, we are referring to freedom, not
  49. price.  Our General Public Licenses are designed to make sure that you
  50. have the freedom to distribute copies of free software (and charge for
  51. this service if you wish), that you receive source code or can get it
  52. if you want it, that you can change the software or use pieces of it in
  53. new free programs; and that you know you can do these things.
  54.    To protect your rights, we need to make restrictions that forbid
  55. anyone to deny you these rights or to ask you to surrender the rights.
  56. These restrictions translate to certain responsibilities for you if you
  57. distribute copies of the software, or if you modify it.
  58.    For example, if you distribute copies of such a program, whether
  59. gratis or for a fee, you must give the recipients all the rights that
  60. you have.  You must make sure that they, too, receive or can get the
  61. source code.  And you must show them these terms so they know their
  62. rights.
  63.    We protect your rights with two steps: (1) copyright the software,
  64. and (2) offer you this license which gives you legal permission to copy,
  65. distribute and/or modify the software.
  66.    Also, for each author's protection and ours, we want to make certain
  67. that everyone understands that there is no warranty for this free
  68. software.  If the software is modified by someone else and passed on, we
  69. want its recipients to know that what they have is not the original, so
  70. that any problems introduced by others will not reflect on the original
  71. authors' reputations.
  72.    Finally, any free program is threatened constantly by software
  73. patents.  We wish to avoid the danger that redistributors of a free
  74. program will individually obtain patent licenses, in effect making the
  75. program proprietary.  To prevent this, we have made it clear that any
  76. patent must be licensed for everyone's free use or not licensed at all.
  77.    The precise terms and conditions for copying, distribution and
  78. modification follow.
  79.     TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  80.   1. This License applies to any program or other work which contains a
  81.      notice placed by the copyright holder saying it may be distributed
  82.      under the terms of this General Public License.  The "Program",
  83.      below, refers to any such program or work, and a "work based on
  84.      the Program" means either the Program or any derivative work under
  85.      copyright law: that is to say, a work containing the Program or a
  86.      portion of it, either verbatim or with modifications and/or
  87.      translated into another language.  (Hereinafter, translation is
  88.      included without limitation in the term "modification".)  Each
  89.      licensee is addressed as "you".
  90.      Activities other than copying, distribution and modification are
  91.      not covered by this License; they are outside its scope.  The act
  92.      of running the Program is not restricted, and the output from the
  93.      Program is covered only if its contents constitute a work based on
  94.      the Program (independent of having been made by running the
  95.      Program).  Whether that is true depends on what the Program does.
  96.   2. You may copy and distribute verbatim copies of the Program's
  97.      source code as you receive it, in any medium, provided that you
  98.      conspicuously and appropriately publish on each copy an appropriate
  99.      copyright notice and disclaimer of warranty; keep intact all the
  100.      notices that refer to this License and to the absence of any
  101.      warranty; and give any other recipients of the Program a copy of
  102.      this License along with the Program.
  103.      You may charge a fee for the physical act of transferring a copy,
  104.      and you may at your option offer warranty protection in exchange
  105.      for a fee.
  106.   3. You may modify your copy or copies of the Program or any portion
  107.      of it, thus forming a work based on the Program, and copy and
  108.      distribute such modifications or work under the terms of Section 1
  109.      above, provided that you also meet all of these conditions:
  110.        a. You must cause the modified files to carry prominent notices
  111.           stating that you changed the files and the date of any change.
  112.        b. You must cause any work that you distribute or publish, that
  113.           in whole or in part contains or is derived from the Program
  114.           or any part thereof, to be licensed as a whole at no charge
  115.           to all third parties under the terms of this License.
  116.        c. If the modified program normally reads commands interactively
  117.           when run, you must cause it, when started running for such
  118.           interactive use in the most ordinary way, to print or display
  119.           an announcement including an appropriate copyright notice and
  120.           a notice that there is no warranty (or else, saying that you
  121.           provide a warranty) and that users may redistribute the
  122.           program under these conditions, and telling the user how to
  123.           view a copy of this License.  (Exception: if the Program
  124.           itself is interactive but does not normally print such an
  125.           announcement, your work based on the Program is not required
  126.           to print an announcement.)
  127.      These requirements apply to the modified work as a whole.  If
  128.      identifiable sections of that work are not derived from the
  129.      Program, and can be reasonably considered independent and separate
  130.      works in themselves, then this License, and its terms, do not
  131.      apply to those sections when you distribute them as separate
  132.      works.  But when you distribute the same sections as part of a
  133.      whole which is a work based on the Program, the distribution of
  134.      the whole must be on the terms of this License, whose permissions
  135.      for other licensees extend to the entire whole, and thus to each
  136.      and every part regardless of who wrote it.
  137.      Thus, it is not the intent of this section to claim rights or
  138.      contest your rights to work written entirely by you; rather, the
  139.      intent is to exercise the right to control the distribution of
  140.      derivative or collective works based on the Program.
  141.      In addition, mere aggregation of another work not based on the
  142.      Program with the Program (or with a work based on the Program) on
  143.      a volume of a storage or distribution medium does not bring the
  144.      other work under the scope of this License.
  145.   4. You may copy and distribute the Program (or a work based on it,
  146.      under Section 2) in object code or executable form under the terms
  147.      of Sections 1 and 2 above provided that you also do one of the
  148.      following:
  149.        a. Accompany it with the complete corresponding machine-readable
  150.           source code, which must be distributed under the terms of
  151.           Sections 1 and 2 above on a medium customarily used for
  152.           software interchange; or,
  153.        b. Accompany it with a written offer, valid for at least three
  154.           years, to give any third party, for a charge no more than your
  155.           cost of physically performing source distribution, a complete
  156.           machine-readable copy of the corresponding source code, to be
  157.           distributed under the terms of Sections 1 and 2 above on a
  158.           medium customarily used for software interchange; or,
  159.        c. Accompany it with the information you received as to the offer
  160.           to distribute corresponding source code.  (This alternative is
  161.           allowed only for noncommercial distribution and only if you
  162.           received the program in object code or executable form with
  163.           such an offer, in accord with Subsection b above.)
  164.      The source code for a work means the preferred form of the work for
  165.      making modifications to it.  For an executable work, complete
  166.      source code means all the source code for all modules it contains,
  167.      plus any associated interface definition files, plus the scripts
  168.      used to control compilation and installation of the executable.
  169.      However, as a special exception, the source code distributed need
  170.      not include anything that is normally distributed (in either
  171.      source or binary form) with the major components (compiler,
  172.      kernel, and so on) of the operating system on which the executable
  173.      runs, unless that component itself accompanies the executable.
  174.      If distribution of executable or object code is made by offering
  175.      access to copy from a designated place, then offering equivalent
  176.      access to copy the source code from the same place counts as
  177.      distribution of the source code, even though third parties are not
  178.      compelled to copy the source along with the object code.
  179.   5. You may not copy, modify, sublicense, or distribute the Program
  180.      except as expressly provided under this License.  Any attempt
  181.      otherwise to copy, modify, sublicense or distribute the Program is
  182.      void, and will automatically terminate your rights under this
  183.      License.  However, parties who have received copies, or rights,
  184.      from you under this License will not have their licenses
  185.      terminated so long as such parties remain in full compliance.
  186.   6. You are not required to accept this License, since you have not
  187.      signed it.  However, nothing else grants you permission to modify
  188.      or distribute the Program or its derivative works.  These actions
  189.      are prohibited by law if you do not accept this License.
  190.      Therefore, by modifying or distributing the Program (or any work
  191.      based on the Program), you indicate your acceptance of this
  192.      License to do so, and all its terms and conditions for copying,
  193.      distributing or modifying the Program or works based on it.
  194.   7. Each time you redistribute the Program (or any work based on the
  195.      Program), the recipient automatically receives a license from the
  196.      original licensor to copy, distribute or modify the Program
  197.      subject to these terms and conditions.  You may not impose any
  198.      further restrictions on the recipients' exercise of the rights
  199.      granted herein.  You are not responsible for enforcing compliance
  200.      by third parties to this License.
  201.   8. If, as a consequence of a court judgment or allegation of patent
  202.      infringement or for any other reason (not limited to patent
  203.      issues), conditions are imposed on you (whether by court order,
  204.      agreement or otherwise) that contradict the conditions of this
  205.      License, they do not excuse you from the conditions of this
  206.      License.  If you cannot distribute so as to satisfy simultaneously
  207.      your obligations under this License and any other pertinent
  208.      obligations, then as a consequence you may not distribute the
  209.      Program at all.  For example, if a patent license would not permit
  210.      royalty-free redistribution of the Program by all those who
  211.      receive copies directly or indirectly through you, then the only
  212.      way you could satisfy both it and this License would be to refrain
  213.      entirely from distribution of the Program.
  214.      If any portion of this section is held invalid or unenforceable
  215.      under any particular circumstance, the balance of the section is
  216.      intended to apply and the section as a whole is intended to apply
  217.      in other circumstances.
  218.      It is not the purpose of this section to induce you to infringe any
  219.      patents or other property right claims or to contest validity of
  220.      any such claims; this section has the sole purpose of protecting
  221.      the integrity of the free software distribution system, which is
  222.      implemented by public license practices.  Many people have made
  223.      generous contributions to the wide range of software distributed
  224.      through that system in reliance on consistent application of that
  225.      system; it is up to the author/donor to decide if he or she is
  226.      willing to distribute software through any other system and a
  227.      licensee cannot impose that choice.
  228.      This section is intended to make thoroughly clear what is believed
  229.      to be a consequence of the rest of this License.
  230.   9. If the distribution and/or use of the Program is restricted in
  231.      certain countries either by patents or by copyrighted interfaces,
  232.      the original copyright holder who places the Program under this
  233.      License may add an explicit geographical distribution limitation
  234.      excluding those countries, so that distribution is permitted only
  235.      in or among countries not thus excluded.  In such case, this
  236.      License incorporates the limitation as if written in the body of
  237.      this License.
  238.  10. The Free Software Foundation may publish revised and/or new
  239.      versions of the General Public License from time to time.  Such
  240.      new versions will be similar in spirit to the present version, but
  241.      may differ in detail to address new problems or concerns.
  242.      Each version is given a distinguishing version number.  If the
  243.      Program specifies a version number of this License which applies
  244.      to it and "any later version", you have the option of following
  245.      the terms and conditions either of that version or of any later
  246.      version published by the Free Software Foundation.  If the Program
  247.      does not specify a version number of this License, you may choose
  248.      any version ever published by the Free Software Foundation.
  249.  11. If you wish to incorporate parts of the Program into other free
  250.      programs whose distribution conditions are different, write to the
  251.      author to ask for permission.  For software which is copyrighted
  252.      by the Free Software Foundation, write to the Free Software
  253.      Foundation; we sometimes make exceptions for this.  Our decision
  254.      will be guided by the two goals of preserving the free status of
  255.      all derivatives of our free software and of promoting the sharing
  256.      and reuse of software generally.
  257.                                 NO WARRANTY
  258.  12. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
  259.      WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE
  260.      LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
  261.      HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
  262.      WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT
  263.      NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  264.      FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE
  265.      QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
  266.      PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY
  267.      SERVICING, REPAIR OR CORRECTION.
  268.  13. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
  269.      WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY
  270.      MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE
  271.      LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,
  272.      INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
  273.      INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
  274.      DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU
  275.      OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY
  276.      OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN
  277.      ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  278.                       END OF TERMS AND CONDITIONS
  279. How to Apply These Terms to Your New Programs
  280. =============================================
  281.    If you develop a new program, and you want it to be of the greatest
  282. possible use to the public, the best way to achieve this is to make it
  283. free software which everyone can redistribute and change under these
  284. terms.
  285.    To do so, attach the following notices to the program.  It is safest
  286. to attach them to the start of each source file to most effectively
  287. convey the exclusion of warranty; and each file should have at least
  288. the "copyright" line and a pointer to where the full notice is found.
  289.      ONE LINE TO GIVE THE PROGRAM'S NAME AND AN IDEA OF WHAT IT DOES.
  290.      Copyright (C) 19YY  NAME OF AUTHOR
  291.      
  292.      This program is free software; you can redistribute it and/or
  293.      modify it under the terms of the GNU General Public License
  294.      as published by the Free Software Foundation; either version 2
  295.      of the License, or (at your option) any later version.
  296.      
  297.      This program is distributed in the hope that it will be useful,
  298.      but WITHOUT ANY WARRANTY; without even the implied warranty of
  299.      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  300.      GNU General Public License for more details.
  301.      
  302.      You should have received a copy of the GNU General Public License
  303.      along with this program; if not, write to the Free Software
  304.      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  305.    Also add information on how to contact you by electronic and paper
  306. mail.
  307.    If the program is interactive, make it output a short notice like
  308. this when it starts in an interactive mode:
  309.      Gnomovision version 69, Copyright (C) 19YY NAME OF AUTHOR
  310.      Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
  311.      type `show w'.  This is free software, and you are welcome
  312.      to redistribute it under certain conditions; type `show c'
  313.      for details.
  314.    The hypothetical commands `show w' and `show c' should show the
  315. appropriate parts of the General Public License.  Of course, the
  316. commands you use may be called something other than `show w' and `show
  317. c'; they could even be mouse-clicks or menu items--whatever suits your
  318. program.
  319.    You should also get your employer (if you work as a programmer) or
  320. your school, if any, to sign a "copyright disclaimer" for the program,
  321. if necessary.  Here is a sample; alter the names:
  322.      Yoyodyne, Inc., hereby disclaims all copyright
  323.      interest in the program `Gnomovision'
  324.      (which makes passes at compilers) written
  325.      by James Hacker.
  326.      
  327.      SIGNATURE OF TY COON, 1 April 1989
  328.      Ty Coon, President of Vice
  329.    This General Public License does not permit incorporating your
  330. program into proprietary programs.  If your program is a subroutine
  331. library, you may consider it more useful to permit linking proprietary
  332. applications with the library.  If this is what you want to do, use the
  333. GNU Library General Public License instead of this License.
  334. File: gzip.info,  Node: Overview,  Next: Sample,  Prev: Copying,  Up: Top
  335. Overview
  336. ********
  337.    `gzip' reduces the size of the named files using Lempel-Ziv coding
  338. (LZ77).  Whenever possible, each file is replaced by one with the
  339. extension `.gz', while keeping the same ownership modes, access and
  340. modification times.  (The default extension is `-gz' for VMS, `z' for
  341. MSDOS, OS/2 FAT and Atari.)  If no files are specified or if a file
  342. name is "-", the standard input is compressed to the standard output.
  343. `gzip' will only attempt to compress regular files.  In particular, it
  344. will ignore symbolic links.
  345.    If the new file name is too long for its file system, `gzip'
  346. truncates it.  `gzip' attempts to truncate only the parts of the file
  347. name longer than 3 characters.  (A part is delimited by dots.) If the
  348. name consists of small parts only, the longest parts are truncated.
  349. For example, if file names are limited to 14 characters, gzip.msdos.exe
  350. is compressed to gzi.msd.exe.gz.  Names are not truncated on systems
  351. which do not have a limit on file name length.
  352.    By default, `gzip' keeps the original file name and timestamp in the
  353. compressed file. These are used when decompressing the file with the
  354. `-N' option. This is useful when the compressed file name was truncated
  355. or when the time stamp was not preserved after a file transfer.
  356.    Compressed files can be restored to their original form using `gzip
  357. -d' or `gunzip' or `zcat'.  If the original name saved in the
  358. compressed file is not suitable for its file system, a new name is
  359. constructed from the original one to make it legal.
  360.    `gunzip' takes a list of files on its command line and replaces each
  361. file whose name ends with `.gz', `.z', `.Z', `-gz', `-z' or `_z' and
  362. which begins with the correct magic number with an uncompressed file
  363. without the original extension.  `gunzip' also recognizes the special
  364. extensions `.tgz' and `.taz' as shorthands for `.tar.gz' and `.tar.Z'
  365. respectively. When compressing, `gzip' uses the `.tgz' extension if
  366. necessary instead of truncating a file with a `.tar' extension.
  367.    `gunzip' can currently decompress files created by `gzip', `zip',
  368. `compress' or `pack'. The detection of the input format is automatic.
  369. When using the first two formats, `gunzip' checks a 32 bit CRC (cyclic
  370. redundancy check). For `pack', `gunzip' checks the uncompressed length.
  371. The `compress' format was not designed to allow consistency checks.
  372. However `gunzip' is sometimes able to detect a bad `.Z' file. If you
  373. get an error when uncompressing a `.Z' file, do not assume that the
  374. `.Z' file is correct simply because the standard `uncompress' does not
  375. complain.  This generally means that the standard `uncompress' does not
  376. check its input, and happily generates garbage output.  The SCO
  377. `compress -H' format (`lzh' compression method) does not include a CRC
  378. but also allows some consistency checks.
  379.    Files created by `zip' can be uncompressed by `gzip' only if they
  380. have a single member compressed with the 'deflation' method. This
  381. feature is only intended to help conversion of `tar.zip' files to the
  382. `tar.gz' format. To extract `zip' files with several members, use
  383. `unzip' instead of `gunzip'.
  384.    `zcat' is identical to `gunzip -c'.  `zcat' uncompresses either a
  385. list of files on the command line or its standard input and writes the
  386. uncompressed data on standard output.  `zcat' will uncompress files
  387. that have the correct magic number whether they have a `.gz' suffix or
  388.    `gzip' uses the Lempel-Ziv algorithm used in `zip' and PKZIP.  The
  389. amount of compression obtained depends on the size of the input and the
  390. distribution of common substrings.  Typically, text such as source code
  391. or English is reduced by 60-70%.  Compression is generally much better
  392. than that achieved by LZW (as used in `compress'), Huffman coding (as
  393. used in `pack'), or adaptive Huffman coding (`compact').
  394.    Compression is always performed, even if the compressed file is
  395. slightly larger than the original. The worst case expansion is a few
  396. bytes for the `gzip' file header, plus 5 bytes every 32K block, or an
  397. expansion ratio of 0.015% for large files. Note that the actual number
  398. of used disk blocks almost never increases. `gzip' preserves the mode,
  399. ownership and timestamps of files when compressing or decompressing.
  400. File: gzip.info,  Node: Sample,  Next: Invoking gzip,  Prev: Overview,  Up: Top
  401. Sample Output
  402. *************
  403.    Here are some realistic examples of running `gzip'.
  404.    This is the output of the command `gzip -h':
  405.      gzip 1.2.4 (18 Aug 93)
  406.      usage: gzip [-cdfhlLnNrtvV19] [-S suffix] [file ...]
  407.       -c --stdout      write on standard output, keep original files unchanged
  408.       -d --decompress  decompress
  409.       -f --force       force overwrite of output file and compress links
  410.       -h --help        give this help
  411.       -l --list        list compressed file contents
  412.       -L --license     display software license
  413.       -n --no-name     do not save or restore the original name and time stamp
  414.       -N --name        save or restore the original name and time stamp
  415.       -q --quiet       suppress all warnings
  416.       -r --recursive   operate recursively on directories
  417.       -S .suf  --suffix .suf     use suffix .suf on compressed files
  418.       -t --test        test compressed file integrity
  419.       -v --verbose     verbose mode
  420.       -V --version     display version number
  421.       -1 --fast        compress faster
  422.       -9 --best        compress better
  423.       file...          files to (de)compress. If none given, use standard input.
  424.    This is the output of the command `gzip -v texinfo.tex':
  425.      texinfo.tex:             71.6% -- replaced with texinfo.tex.gz
  426.    The following command will find all `gzip' files in the current
  427. directory and subdirectories, and extract them in place without
  428. destroying the original:
  429.      find . -name '*.gz' -print | sed 's/^\(.*\)[.]gz$/gunzip < "&" > "\1"/' | sh
  430. File: gzip.info,  Node: Invoking gzip,  Next: Advanced usage,  Prev: Sample,  Up: Top
  431. Invoking `gzip'
  432. ***************
  433.    The format for running the `gzip' program is:
  434.      gzip OPTION ...
  435.    `gzip' supports the following options:
  436. `--stdout'
  437. `--to-stdout'
  438.      Write output on standard output; keep original files unchanged.
  439.      If there are several input files, the output consists of a
  440.      sequence of independently compressed members. To obtain better
  441.      compression, concatenate all input files before compressing them.
  442. `--decompress'
  443. `--uncompress'
  444.      Decompress.
  445. `--force'
  446.      Force compression or decompression even if the file has multiple
  447.      links or the corresponding file already exists, or if the
  448.      compressed data is read from or written to a terminal. If the
  449.      input data is not in a format recognized by `gzip', and if the
  450.      option -stdout is also given, copy the input data without change
  451.      to the standard ouput: let `zcat' behave as `cat'. If `-f' is not
  452.      given, and when not running in the background, `gzip' prompts to
  453.      verify whether an existing file should be overwritten.
  454. `--help'
  455.      Print an informative help message describing the options then quit.
  456. `--list'
  457.      For each compressed file, list the following fields:
  458.           compressed size: size of the compressed file
  459.           uncompressed size: size of the uncompressed file
  460.           ratio: compression ratio (0.0% if unknown)
  461.           uncompressed_name: name of the uncompressed file
  462.      The uncompressed size is given as `-1' for files not in `gzip'
  463.      format, such as compressed `.Z' files. To get the uncompressed
  464.      size for such a file, you can use:
  465.           zcat file.Z | wc -c
  466.      In combination with the -verbose option, the following fields are
  467.      also displayed:
  468.           method: compression method (deflate,compress,lzh,pack)
  469.           crc: the 32-bit CRC of the uncompressed data
  470.           date & time: time stamp for the uncompressed file
  471.      The crc is given as ffffffff for a file not in gzip format.
  472.      With -verbose, the size totals and compression ratio for all files
  473.      is also displayed, unless some sizes are unknown. With -quiet, the
  474.      title and totals lines are not displayed.
  475. `--license'
  476.      Display the `gzip' license then quit.
  477. `--no-name'
  478.      When compressing, do not save the original file name and time
  479.      stamp by default. (The original name is always saved if the name
  480.      had to be truncated.) When decompressing, do not restore the
  481.      original file name if present (remove only the `gzip' suffix from
  482.      the compressed file name) and do not restore the original time
  483.      stamp if present (copy it from the compressed file). This option
  484.      is the default when decompressing.
  485. `--name'
  486.      When compressing, always save the original file name and time
  487.      stamp; this is the default. When decompressing, restore the
  488.      original file name and time stamp if present. This option is
  489.      useful on systems which have a limit on file name length or when
  490.      the time stamp has been lost after a file transfer.
  491. `--quiet'
  492.      Suppress all warning messages.
  493. `--recursive'
  494.      Travel the directory structure recursively. If any of the file
  495.      names specified on the command line are directories, `gzip' will
  496.      descend into the directory and compress all the files it finds
  497.      there (or decompress them in the case of `gunzip').
  498. `--suffix SUF'
  499. `-S SUF'
  500.      Use suffix `SUF' instead of `.gz'. Any suffix can be given, but
  501.      suffixes other than `.z' and `.gz' should be avoided to avoid
  502.      confusion when files are transferred to other systems.  A null
  503.      suffix forces gunzip to try decompression on all given files
  504.      regardless of suffix, as in:
  505.           gunzip -S "" *        (*.* for MSDOS)
  506.      Previous versions of gzip used the `.z' suffix. This was changed to
  507.      avoid a conflict with `pack'.
  508. `--test'
  509.      Test. Check the compressed file integrity.
  510. `--verbose'
  511.      Verbose. Display the name and percentage reduction for each file
  512.      compressed.
  513. `--version'
  514.      Version. Display the version number and compilation options, then
  515.      quit.
  516. `--fast'
  517. `--best'
  518.      Regulate the speed of compression using the specified digit N,
  519.      where `-1' or `--fast' indicates the fastest compression method
  520.      (less compression) and `--best' or `-9' indicates the slowest
  521.      compression method (optimal compression).  The default compression
  522.      level is `-6' (that is, biased towards high compression at expense
  523.      of speed).
  524. File: gzip.info,  Node: Advanced usage,  Next: Environment,  Prev: Invoking gzip,  Up: Top
  525. Advanced usage
  526. **************
  527.    Multiple compressed files can be concatenated. In this case,
  528. `gunzip' will extract all members at once. If one member is damaged,
  529. other members might still be recovered after removal of the damaged
  530. member. Better compression can be usually obtained if all members are
  531. decompressed and then recompressed in a single step.
  532.    This is an example of concatenating `gzip' files:
  533.      gzip -c file1  > foo.gz
  534.      gzip -c file2 >> foo.gz
  535.    Then
  536.      gunzip -c foo
  537.    is equivalent to
  538.      cat file1 file2
  539.    In case of damage to one member of a `.gz' file, other members can
  540. still be recovered (if the damaged member is removed). However, you can
  541. get better compression by compressing all members at once:
  542.      cat file1 file2 | gzip > foo.gz
  543.    compresses better than
  544.      gzip -c file1 file2 > foo.gz
  545.    If you want to recompress concatenated files to get better
  546. compression, do:
  547.      zcat old.gz | gzip > new.gz
  548.    If a compressed file consists of several members, the uncompressed
  549. size and CRC reported by the `--list' option applies to the last member
  550. only. If you need the uncompressed size for all members, you can use:
  551.      zcat file.gz | wc -c
  552.    If you wish to create a single archive file with multiple members so
  553. that members can later be extracted independently, use an archiver such
  554. as `tar' or `zip'. GNU `tar' supports the `-z' option to invoke `gzip'
  555. transparently. `gzip' is designed as a complement to `tar', not as a
  556. replacement.
  557. File: gzip.info,  Node: Environment,  Next: Tapes,  Prev: Advanced usage,  Up: Top
  558. Environment
  559. ***********
  560.    The environment variable `GZIP' can hold a set of default options for
  561. `gzip'.  These options are interpreted first and can be overwritten by
  562. explicit command line parameters.  For example:
  563.      for sh:    GZIP="-8v --name"; export GZIP
  564.      for csh:   setenv GZIP "-8v --name"
  565.      for MSDOS: set GZIP=-8v --name
  566.    On Vax/VMS, the name of the environment variable is `GZIP_OPT', to
  567. avoid a conflict with the symbol set for invocation of the program.
  568. File: gzip.info,  Node: Tapes,  Next: Problems,  Prev: Environment,  Up: Top
  569. Using `gzip' on tapes
  570. *********************
  571.    When writing compressed data to a tape, it is generally necessary to
  572. pad the output with zeroes up to a block boundary. When the data is
  573. read and the whole block is passed to `gunzip' for decompression,
  574. `gunzip' detects that there is extra trailing garbage after the
  575. compressed data and emits a warning by default. You have to use the
  576. `--quiet' option to suppress the warning. This option can be set in the
  577. `GZIP' environment variable, as in:
  578.      for sh:    GZIP="-q"  tar -xfz --block-compress /dev/rst0
  579.      for csh:   (setenv GZIP "-q"; tar -xfz --block-compress /dev/rst0)
  580.    In the above example, `gzip' is invoked implicitly by the `-z'
  581. option of GNU `tar'.  Make sure that the same block size (`-b' option
  582. of `tar') is used for reading and writing compressed data on tapes.
  583. (This example assumes you are using the GNU version of `tar'.)
  584. File: gzip.info,  Node: Problems,  Next: Concept Index,  Prev: Tapes,  Up: Top
  585. Reporting Bugs
  586. **************
  587.    If you find a bug in `gzip', please send electronic mail to
  588. `jloup@chorus.fr' or, if this fails, to
  589. `bug-gnu-utils@prep.ai.mit.edu'.  Include the version number, which you
  590. can find by running `gzip -V'.  Also include in your message the
  591. hardware and operating system, the compiler used to compile `gzip', a
  592. description of the bug behavior, and the input to `gzip' that triggered
  593. the bug.
  594. File: gzip.info,  Node: Concept Index,  Prev: Problems,  Up: Top
  595. Concept Index
  596. *************
  597. * Menu:
  598. * bugs:                                 Problems.
  599. * concatenated files:                   Advanced usage.
  600. * Environment:                          Environment.
  601. * invoking:                             Invoking gzip.
  602. * options:                              Invoking gzip.
  603. * overview:                             Overview.
  604. * sample:                               Sample.
  605. * tapes:                                Tapes.
  606. Tag Table:
  607. Node: Top
  608. Node: Copying
  609. Node: Overview
  610. 20503
  611. Node: Sample
  612. 24810
  613. Node: Invoking gzip
  614. 26427
  615. Node: Advanced usage
  616. 31052
  617. Node: Environment
  618. 32641
  619. Node: Tapes
  620. 33209
  621. Node: Problems
  622. 34185
  623. Node: Concept Index
  624. 34690
  625. End Tag Table
  626.