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

sysvinit
Last change on this file since d4f9e43 was c521416c, checked in by William Harrington <kb0iic@…>, 9 years ago

mv gzexe and uncompress to /usr/bin.

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