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