1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <sect1 id="ch-system-gzip" role="wrap">
|
---|
9 | <?dbhtml filename="gzip.html"?>
|
---|
10 |
|
---|
11 | <title>Gzip-&gzip-version;</title>
|
---|
12 |
|
---|
13 | <indexterm zone="ch-system-gzip">
|
---|
14 | <primary sortas="a-Gzip">Gzip</primary>
|
---|
15 | </indexterm>
|
---|
16 |
|
---|
17 | <sect2 role="package">
|
---|
18 | <title/>
|
---|
19 |
|
---|
20 | <para>The Gzip package contains programs for compressing and decompressing
|
---|
21 | files.</para>
|
---|
22 |
|
---|
23 | </sect2>
|
---|
24 |
|
---|
25 | <sect2 role="installation">
|
---|
26 | <title>Installation of Gzip</title>
|
---|
27 |
|
---|
28 | <para os="a">Prepare Gzip for compilation:</para>
|
---|
29 |
|
---|
30 | <screen os="b"><userinput>./configure --prefix=/usr --bindir=/bin</userinput></screen>
|
---|
31 |
|
---|
32 | <para os="c">Compile the package:</para>
|
---|
33 |
|
---|
34 | <screen os="d"><userinput>make</userinput></screen>
|
---|
35 |
|
---|
36 | <para os="e">To test the results, issue: make check.</para>
|
---|
37 |
|
---|
38 | <para os="f">Install the package:</para>
|
---|
39 |
|
---|
40 | <screen os="g"><userinput>make install</userinput></screen>
|
---|
41 |
|
---|
42 | <para os="h">Now we will move some of utilities to /usr/bin to meet FHS compliance:</para>
|
---|
43 |
|
---|
44 | <screen os="i"><userinput>mv /bin/z{egrep,cmp,diff,fgrep,force,grep,less,more,new} /usr/bin</userinput></screen>
|
---|
45 |
|
---|
46 | </sect2>
|
---|
47 |
|
---|
48 | <sect2 id="contents-gzip" role="content">
|
---|
49 | <title>Contents of Gzip</title>
|
---|
50 |
|
---|
51 | <segmentedlist>
|
---|
52 | <segtitle>Installed programs</segtitle>
|
---|
53 |
|
---|
54 | <seglistitem>
|
---|
55 | <seg>compress (link to gzip), gunzip (link to gzip), gzexe, gzip,
|
---|
56 | uncompress (link to gunzip), zcat (link to gzip), zcmp, zdiff,
|
---|
57 | zegrep, zfgrep, zforce, zgrep, zless, zmore, and znew</seg>
|
---|
58 | </seglistitem>
|
---|
59 | </segmentedlist>
|
---|
60 |
|
---|
61 | <variablelist>
|
---|
62 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
63 | <?dbfo list-presentation="list"?>
|
---|
64 | <?dbhtml list-presentation="table"?>
|
---|
65 |
|
---|
66 | <varlistentry id="compress">
|
---|
67 | <term><command>compress</command></term>
|
---|
68 | <listitem>
|
---|
69 | <para>Compresses and decompresses files</para>
|
---|
70 | <indexterm zone="ch-system-gzip compress">
|
---|
71 | <primary sortas="b-compress">compress</primary>
|
---|
72 | </indexterm>
|
---|
73 | </listitem>
|
---|
74 | </varlistentry>
|
---|
75 |
|
---|
76 | <varlistentry id="gunzip">
|
---|
77 | <term><command>gunzip</command></term>
|
---|
78 | <listitem>
|
---|
79 | <para>Decompresses gzipped files</para>
|
---|
80 | <indexterm zone="ch-system-gzip gunzip">
|
---|
81 | <primary sortas="b-gunzip">gunzip</primary>
|
---|
82 | </indexterm>
|
---|
83 | </listitem>
|
---|
84 | </varlistentry>
|
---|
85 |
|
---|
86 | <varlistentry id="gzexe">
|
---|
87 | <term><command>gzexe</command></term>
|
---|
88 | <listitem>
|
---|
89 | <para>Creates self-decompressing executable files</para>
|
---|
90 | <indexterm zone="ch-system-gzip gzexe">
|
---|
91 | <primary sortas="b-gzexe">gzexe</primary>
|
---|
92 | </indexterm>
|
---|
93 | </listitem>
|
---|
94 | </varlistentry>
|
---|
95 |
|
---|
96 | <varlistentry id="gzip">
|
---|
97 | <term><command>gzip</command></term>
|
---|
98 | <listitem>
|
---|
99 | <para>Compresses the given files using Lempel-Ziv (LZ77) coding</para>
|
---|
100 | <indexterm zone="ch-system-gzip gzip">
|
---|
101 | <primary sortas="b-gzip">gzip</primary>
|
---|
102 | </indexterm>
|
---|
103 | </listitem>
|
---|
104 | </varlistentry>
|
---|
105 |
|
---|
106 | <varlistentry id="uncompress">
|
---|
107 | <term><command>uncompress</command></term>
|
---|
108 | <listitem>
|
---|
109 | <para>Decompresses compressed files</para>
|
---|
110 | <indexterm zone="ch-system-gzip uncompress">
|
---|
111 | <primary sortas="b-uncompress">uncompress</primary>
|
---|
112 | </indexterm>
|
---|
113 | </listitem>
|
---|
114 | </varlistentry>
|
---|
115 |
|
---|
116 | <varlistentry id="zcat">
|
---|
117 | <term><command>zcat</command></term>
|
---|
118 | <listitem>
|
---|
119 | <para>Decompresses the given gzipped files to standard output</para>
|
---|
120 | <indexterm zone="ch-system-gzip zcat">
|
---|
121 | <primary sortas="b-zcat">zcat</primary>
|
---|
122 | </indexterm>
|
---|
123 | </listitem>
|
---|
124 | </varlistentry>
|
---|
125 |
|
---|
126 | <varlistentry id="zcmp">
|
---|
127 | <term><command>zcmp</command></term>
|
---|
128 | <listitem>
|
---|
129 | <para>Runs <command>cmp</command> on gzipped files</para>
|
---|
130 | <indexterm zone="ch-system-gzip zcmp">
|
---|
131 | <primary sortas="b-zcmp">zcmp</primary>
|
---|
132 | </indexterm>
|
---|
133 | </listitem>
|
---|
134 | </varlistentry>
|
---|
135 |
|
---|
136 | <varlistentry id="zdiff">
|
---|
137 | <term><command>zdiff</command></term>
|
---|
138 | <listitem>
|
---|
139 | <para>Runs <command>diff</command> on gzipped files</para>
|
---|
140 | <indexterm zone="ch-system-gzip zdiff">
|
---|
141 | <primary sortas="b-zdiff">zdiff</primary>
|
---|
142 | </indexterm>
|
---|
143 | </listitem>
|
---|
144 | </varlistentry>
|
---|
145 |
|
---|
146 | <varlistentry id="zegrep">
|
---|
147 | <term><command>zegrep</command></term>
|
---|
148 | <listitem>
|
---|
149 | <para>Runs <command>egrep</command> on gzipped files</para>
|
---|
150 | <indexterm zone="ch-system-gzip zegrep">
|
---|
151 | <primary sortas="b-zegrep">zegrep</primary>
|
---|
152 | </indexterm>
|
---|
153 | </listitem>
|
---|
154 | </varlistentry>
|
---|
155 |
|
---|
156 | <varlistentry id="zfgrep">
|
---|
157 | <term><command>zfgrep</command></term>
|
---|
158 | <listitem>
|
---|
159 | <para>Runs <command>fgrep</command> on gzipped files</para>
|
---|
160 | <indexterm zone="ch-system-gzip zfgrep">
|
---|
161 | <primary sortas="b-zfgrep">zfgrep</primary>
|
---|
162 | </indexterm>
|
---|
163 | </listitem>
|
---|
164 | </varlistentry>
|
---|
165 |
|
---|
166 | <varlistentry id="zforce">
|
---|
167 | <term><command>zforce</command></term>
|
---|
168 | <listitem>
|
---|
169 | <para>Forces a <filename class="extension">.gz</filename> extension on
|
---|
170 | all given files that are gzipped files, so that <command>gzip</command>
|
---|
171 | will not compress them again; this can be useful when file names were
|
---|
172 | truncated during a file transfer</para>
|
---|
173 | <indexterm zone="ch-system-gzip zforce">
|
---|
174 | <primary sortas="b-zforce">zforce</primary>
|
---|
175 | </indexterm>
|
---|
176 | </listitem>
|
---|
177 | </varlistentry>
|
---|
178 |
|
---|
179 | <varlistentry id="zgrep">
|
---|
180 | <term><command>zgrep</command></term>
|
---|
181 | <listitem>
|
---|
182 | <para>Runs <command>grep</command> on gzipped files</para>
|
---|
183 | <indexterm zone="ch-system-gzip zgrep">
|
---|
184 | <primary sortas="b-zgrep">zgrep</primary>
|
---|
185 | </indexterm>
|
---|
186 | </listitem>
|
---|
187 | </varlistentry>
|
---|
188 |
|
---|
189 | <varlistentry id="zless">
|
---|
190 | <term><command>zless</command></term>
|
---|
191 | <listitem>
|
---|
192 | <para>Runs <command>less</command> on gzipped files</para>
|
---|
193 | <indexterm zone="ch-system-gzip zless">
|
---|
194 | <primary sortas="b-zless">zless</primary>
|
---|
195 | </indexterm>
|
---|
196 | </listitem>
|
---|
197 | </varlistentry>
|
---|
198 |
|
---|
199 | <varlistentry id="zmore">
|
---|
200 | <term><command>zmore</command></term>
|
---|
201 | <listitem>
|
---|
202 | <para>Runs <command>more</command> on gzipped files</para>
|
---|
203 | <indexterm zone="ch-system-gzip zmore">
|
---|
204 | <primary sortas="b-zmore">zmore</primary>
|
---|
205 | </indexterm>
|
---|
206 | </listitem>
|
---|
207 | </varlistentry>
|
---|
208 |
|
---|
209 | <varlistentry id="znew">
|
---|
210 | <term><command>znew</command></term>
|
---|
211 | <listitem>
|
---|
212 | <para>Re-compresses files from <command>compress</command> format to
|
---|
213 | <command>gzip</command> format—<filename
|
---|
214 | class="extension">.Z</filename> to <filename
|
---|
215 | class="extension">.gz</filename></para>
|
---|
216 | <indexterm zone="ch-system-gzip znew">
|
---|
217 | <primary sortas="b-znew">znew</primary>
|
---|
218 | </indexterm>
|
---|
219 | </listitem>
|
---|
220 | </varlistentry>
|
---|
221 |
|
---|
222 | </variablelist>
|
---|
223 |
|
---|
224 | </sect2>
|
---|
225 |
|
---|
226 | </sect1>
|
---|