summaryrefslogtreecommitdiff
path: root/man/1/gzip
blob: 1ba9e4a2706f2705c593372e82208903572d1b81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
.TH GZIP 1
.SH NAME
gzip, gunzip \- compression and decompression utilities
.SH SYNOPSIS
.B gzip
[
.B \-v
] [
.BI \- level
] [
.IR file ...
]
.br
.B gunzip
[
.IR file ...
]
.SH DESCRIPTION
.B Gzip
and
.B gunzip
perform data compression and decompression
compatible with the Unix
.I gzip
file format,
which uses a hybrid Lempel-Ziv 1977 and Huffman compression algorithm
called `deflate'.
If no arguments are given
.B gzip
compresses each
.I file
replacing it by a file of the same
name with the a
.B .gz
suffix appended.
If no files are given, standard input
and standard output are used.
.I Level
is a single decimal digit between 1 and 9;
higher numbers give better compression.
The default
.I level
is 6.
The
.B \-v
option causes
.B gzip
to report the compression ratio of each file that
it compresses.
.PP
.B Gunzip
performs the opposite operation to
.BR gzip ;
each
.I file
(which must have a
.B .gz
suffix) is uncompressed, and replaced
by a file of the same name with the
.B .gz
suffix removed. If no files are given,
standard input and standard output are used.
.SH SOURCE
.B /appl/cmd/gzip.b
.br
.B /appl/cmd/gunzip.b
.SH SEE ALSO
.IR filter (2),
.IR filter-deflate (2)