1 .\" $NetBSD: gzip.1,v 1.20 2009/04/01 08:15:37 mrg Exp $
2 .\" $DragonFly: src/usr.bin/gzip/gzip.1,v 1.2 2007/12/06 19:54:52 hasso Exp $
4 .\" Copyright (c) 1997, 2003, 2004 Matthew R. Green
5 .\" All rights reserved.
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in the
14 .\" documentation and/or other materials provided with the distribution.
16 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
21 .\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 .\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
23 .\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24 .\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 .Nd compression/decompression tool using Lempel-Ziv coding (LZ77)
61 program compresses and decompresses files using Lempel-Ziv coding
67 will compress from standard input, or decompress to standard output.
68 When in compression mode, each
70 will be replaced with another file with the suffix, set by the
72 option, added, if possible.
73 In decompression mode, each
75 will be checked for existence, as will the file with the suffix
95 is also capable of decompressing files compressed using
101 The following options are available:
102 .Bl -tag -width XXrXXXrecursiveX
112 These options change the compression level used, with the
114 option being the fastest, with less compression, and the
116 option being the slowest, with optimal compression.
117 The default compression level is 6.
118 .It Fl c , -stdout , -to-stdout
119 This option specifies that output will go to the standard output
120 stream, leaving files intact.
121 .It Fl d , -decompress , -uncompress
122 This option selects decompression rather than compression.
124 This option turns on force mode.
125 This allows files with multiple links, overwriting of pre-existing
126 files, reading from or writing to a terminal, and when combined
129 option, allowing non-compressed data to pass through unchanged.
131 This option prints a usage summary and exits.
133 Keep (don't delete) input files during compression
136 This option displays information about the file's compressed and
137 uncompressed size, ratio, uncompressed name.
140 option, it also displays the compression method, CRC, date and time
141 embedded in the file.
143 This option causes the stored filename in the input file to be used
146 This option stops the filename and timestamp from being stored in
149 With this option, no warnings or errors are printed.
150 .It Fl r , -recursive
151 This option is used to
153 the files in a directory tree individually, using the
156 .It Fl S Ar suffix , Fl -suffix Ar suffix
157 This option changes the default suffix from .gz to
160 This option will test compressed files for integrity.
162 This option prints the version of the
166 This option turns on verbose mode, which prints the compression
167 ratio for each file compressed.
170 If the environment variable
172 is set, it is parsed as a white-space separated list of options
173 handled before any options on the command line.
174 Options on the command line will override anything in
184 program was originally written by Jean-loup Gailly, licensed under
185 the GNU Public Licence.
186 Matthew R. Green wrote a simple front end for
188 distribution media, based on the freely re-distributable zlib library.
189 It was enhanced to be mostly feature-compatible with the original
195 This manual documents
200 This implementation of
203 .An Matthew R. Green Aq mrg@eterna.com.au .