source: BOOK/final-system/common/gzip.xml@ c8a83d8

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since c8a83d8 was 686839b, checked in by William Harrington <kb0iic@…>, 11 years ago

Add screen tags around userinput test commands and remap userinput for test commands as remap="test".

  • Property mode set to 100644
File size: 6.9 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/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:</para>
37
38<screen os="e2"><userinput remap="test">make check</userinput></screen>
39
40 <para os="f">Install the package:</para>
41
42<screen os="g"><userinput>make install</userinput></screen>
43
44 <para os="h">Now we will move some of the utilities to
45 <filename class="directory">/usr/bin</filename> to meet FHS compliance:</para>
46
47<screen os="i"><userinput>mv -v /bin/z{egrep,cmp,diff,fgrep,force,grep,less,more,new} /usr/bin</userinput></screen>
48
49 </sect2>
50
51 <sect2 id="contents-gzip" role="content">
52 <title>Contents of Gzip</title>
53
54 <segmentedlist>
55 <segtitle>Installed programs</segtitle>
56
57 <seglistitem>
58 <seg>gunzip, gzexe, gzip, uncompress, zcat, zcmp, zdiff,
59 zegrep, zfgrep, zforce, zgrep, zless, zmore, and znew</seg>
60 </seglistitem>
61 </segmentedlist>
62
63 <variablelist>
64 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
65 <?dbfo list-presentation="list"?>
66 <?dbhtml list-presentation="table"?>
67
68 <varlistentry id="gunzip">
69 <term><command>gunzip</command></term>
70 <listitem>
71 <para>Decompresses gzipped files</para>
72 <indexterm zone="ch-system-gzip gunzip">
73 <primary sortas="b-gunzip">gunzip</primary>
74 </indexterm>
75 </listitem>
76 </varlistentry>
77
78 <varlistentry id="gzexe">
79 <term><command>gzexe</command></term>
80 <listitem>
81 <para>Creates self-decompressing executable files</para>
82 <indexterm zone="ch-system-gzip gzexe">
83 <primary sortas="b-gzexe">gzexe</primary>
84 </indexterm>
85 </listitem>
86 </varlistentry>
87
88 <varlistentry id="gzip">
89 <term><command>gzip</command></term>
90 <listitem>
91 <para>Compresses the given files using Lempel-Ziv (LZ77) coding</para>
92 <indexterm zone="ch-system-gzip gzip">
93 <primary sortas="b-gzip">gzip</primary>
94 </indexterm>
95 </listitem>
96 </varlistentry>
97
98 <varlistentry id="uncompress">
99 <term><command>uncompress</command></term>
100 <listitem>
101 <para>Decompresses compressed files</para>
102 <indexterm zone="ch-system-gzip uncompress">
103 <primary sortas="b-uncompress">uncompress</primary>
104 </indexterm>
105 </listitem>
106 </varlistentry>
107
108 <varlistentry id="zcat">
109 <term><command>zcat</command></term>
110 <listitem>
111 <para>Decompresses the given gzipped files to standard output</para>
112 <indexterm zone="ch-system-gzip zcat">
113 <primary sortas="b-zcat">zcat</primary>
114 </indexterm>
115 </listitem>
116 </varlistentry>
117
118 <varlistentry id="zcmp">
119 <term><command>zcmp</command></term>
120 <listitem>
121 <para>Runs <command>cmp</command> on gzipped files</para>
122 <indexterm zone="ch-system-gzip zcmp">
123 <primary sortas="b-zcmp">zcmp</primary>
124 </indexterm>
125 </listitem>
126 </varlistentry>
127
128 <varlistentry id="zdiff">
129 <term><command>zdiff</command></term>
130 <listitem>
131 <para>Runs <command>diff</command> on gzipped files</para>
132 <indexterm zone="ch-system-gzip zdiff">
133 <primary sortas="b-zdiff">zdiff</primary>
134 </indexterm>
135 </listitem>
136 </varlistentry>
137
138 <varlistentry id="zegrep">
139 <term><command>zegrep</command></term>
140 <listitem>
141 <para>Runs <command>egrep</command> on gzipped files</para>
142 <indexterm zone="ch-system-gzip zegrep">
143 <primary sortas="b-zegrep">zegrep</primary>
144 </indexterm>
145 </listitem>
146 </varlistentry>
147
148 <varlistentry id="zfgrep">
149 <term><command>zfgrep</command></term>
150 <listitem>
151 <para>Runs <command>fgrep</command> on gzipped files</para>
152 <indexterm zone="ch-system-gzip zfgrep">
153 <primary sortas="b-zfgrep">zfgrep</primary>
154 </indexterm>
155 </listitem>
156 </varlistentry>
157
158 <varlistentry id="zforce">
159 <term><command>zforce</command></term>
160 <listitem>
161 <para>Forces a <filename class="extension">.gz</filename> extension on
162 all given files that are gzipped files, so that <command>gzip</command>
163 will not compress them again; this can be useful when file names were
164 truncated during a file transfer</para>
165 <indexterm zone="ch-system-gzip zforce">
166 <primary sortas="b-zforce">zforce</primary>
167 </indexterm>
168 </listitem>
169 </varlistentry>
170
171 <varlistentry id="zgrep">
172 <term><command>zgrep</command></term>
173 <listitem>
174 <para>Runs <command>grep</command> on gzipped files</para>
175 <indexterm zone="ch-system-gzip zgrep">
176 <primary sortas="b-zgrep">zgrep</primary>
177 </indexterm>
178 </listitem>
179 </varlistentry>
180
181 <varlistentry id="zless">
182 <term><command>zless</command></term>
183 <listitem>
184 <para>Runs <command>less</command> on gzipped files</para>
185 <indexterm zone="ch-system-gzip zless">
186 <primary sortas="b-zless">zless</primary>
187 </indexterm>
188 </listitem>
189 </varlistentry>
190
191 <varlistentry id="zmore">
192 <term><command>zmore</command></term>
193 <listitem>
194 <para>Runs <command>more</command> on gzipped files</para>
195 <indexterm zone="ch-system-gzip zmore">
196 <primary sortas="b-zmore">zmore</primary>
197 </indexterm>
198 </listitem>
199 </varlistentry>
200
201 <varlistentry id="znew">
202 <term><command>znew</command></term>
203 <listitem>
204 <para>Re-compresses files from <command>compress</command> format to
205 <command>gzip</command> format&mdash;<filename
206 class="extension">.Z</filename> to <filename
207 class="extension">.gz</filename></para>
208 <indexterm zone="ch-system-gzip znew">
209 <primary sortas="b-znew">znew</primary>
210 </indexterm>
211 </listitem>
212 </varlistentry>
213
214 </variablelist>
215
216 </sect2>
217
218</sect1>
Note: See TracBrowser for help on using the repository browser.