gzip.xml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  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. <sect1 id="ch-system-gzip" role="wrap">
  8. <?dbhtml filename="gzip.html"?>
  9. <sect1info condition="script">
  10. <productname>gzip</productname>
  11. <productnumber>&gzip-version;</productnumber>
  12. <address>&gzip-url;</address>
  13. </sect1info>
  14. <title>Gzip-&gzip-version;</title>
  15. <indexterm zone="ch-system-gzip">
  16. <primary sortas="a-Gzip">Gzip</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Gzip package contains programs for compressing and decompressing
  21. files.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&gzip-ch6-sbu;</seg>
  27. <seg>&gzip-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Gzip</title>
  33. <para>Prepare Gzip for compilation:</para>
  34. <screen><userinput remap="configure">./configure --prefix=/usr --bindir=/bin</userinput></screen>
  35. <para>Compile the package:</para>
  36. <screen><userinput remap="make">make</userinput></screen>
  37. <para>To test the results, issue:</para>
  38. <screen><userinput remap="test">make check</userinput></screen>
  39. <para>Install the package:</para>
  40. <screen><userinput remap="install">make install</userinput></screen>
  41. <para>Move some programs that do not need to be on the root filesystem:</para>
  42. <screen><userinput remap="install">mv -v /bin/{gzexe,uncompress,zcmp,zdiff,zegrep} /usr/bin
  43. mv -v /bin/{zfgrep,zforce,zgrep,zless,zmore,znew} /usr/bin</userinput></screen>
  44. </sect2>
  45. <sect2 id="contents-gzip" role="content">
  46. <title>Contents of Gzip</title>
  47. <segmentedlist>
  48. <segtitle>Installed programs</segtitle>
  49. <seglistitem>
  50. <seg>gunzip, gzexe, gzip, uncompress, zcat, zcmp, zdiff, zegrep, zfgrep,
  51. zforce, zgrep, zless, zmore, and znew</seg>
  52. </seglistitem>
  53. </segmentedlist>
  54. <variablelist>
  55. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  56. <?dbfo list-presentation="list"?>
  57. <?dbhtml list-presentation="table"?>
  58. <varlistentry id="gunzip">
  59. <term><command>gunzip</command></term>
  60. <listitem>
  61. <para>Decompresses gzipped files</para>
  62. <indexterm zone="ch-system-gzip gunzip">
  63. <primary sortas="b-gunzip">gunzip</primary>
  64. </indexterm>
  65. </listitem>
  66. </varlistentry>
  67. <varlistentry id="gzexe">
  68. <term><command>gzexe</command></term>
  69. <listitem>
  70. <para>Creates self-decompressing executable files</para>
  71. <indexterm zone="ch-system-gzip gzexe">
  72. <primary sortas="b-gzexe">gzexe</primary>
  73. </indexterm>
  74. </listitem>
  75. </varlistentry>
  76. <varlistentry id="gzip">
  77. <term><command>gzip</command></term>
  78. <listitem>
  79. <para>Compresses the given files using Lempel-Ziv (LZ77) coding</para>
  80. <indexterm zone="ch-system-gzip gzip">
  81. <primary sortas="b-gzip">gzip</primary>
  82. </indexterm>
  83. </listitem>
  84. </varlistentry>
  85. <varlistentry id="uncompress">
  86. <term><command>uncompress</command></term>
  87. <listitem>
  88. <para>Decompresses compressed files</para>
  89. <indexterm zone="ch-system-gzip uncompress">
  90. <primary sortas="b-uncompress">uncompress</primary>
  91. </indexterm>
  92. </listitem>
  93. </varlistentry>
  94. <varlistentry id="zcat">
  95. <term><command>zcat</command></term>
  96. <listitem>
  97. <para>Decompresses the given gzipped files to standard output</para>
  98. <indexterm zone="ch-system-gzip zcat">
  99. <primary sortas="b-zcat">zcat</primary>
  100. </indexterm>
  101. </listitem>
  102. </varlistentry>
  103. <varlistentry id="zcmp">
  104. <term><command>zcmp</command></term>
  105. <listitem>
  106. <para>Runs <command>cmp</command> on gzipped files</para>
  107. <indexterm zone="ch-system-gzip zcmp">
  108. <primary sortas="b-zcmp">zcmp</primary>
  109. </indexterm>
  110. </listitem>
  111. </varlistentry>
  112. <varlistentry id="zdiff">
  113. <term><command>zdiff</command></term>
  114. <listitem>
  115. <para>Runs <command>diff</command> on gzipped files</para>
  116. <indexterm zone="ch-system-gzip zdiff">
  117. <primary sortas="b-zdiff">zdiff</primary>
  118. </indexterm>
  119. </listitem>
  120. </varlistentry>
  121. <varlistentry id="zegrep">
  122. <term><command>zegrep</command></term>
  123. <listitem>
  124. <para>Runs <command>egrep</command> on gzipped files</para>
  125. <indexterm zone="ch-system-gzip zegrep">
  126. <primary sortas="b-zegrep">zegrep</primary>
  127. </indexterm>
  128. </listitem>
  129. </varlistentry>
  130. <varlistentry id="zfgrep">
  131. <term><command>zfgrep</command></term>
  132. <listitem>
  133. <para>Runs <command>fgrep</command> on gzipped files</para>
  134. <indexterm zone="ch-system-gzip zfgrep">
  135. <primary sortas="b-zfgrep">zfgrep</primary>
  136. </indexterm>
  137. </listitem>
  138. </varlistentry>
  139. <varlistentry id="zforce">
  140. <term><command>zforce</command></term>
  141. <listitem>
  142. <para>Forces a <filename class="extension">.gz</filename> extension on
  143. all given files that are gzipped files, so that <command>gzip</command>
  144. will not compress them again; this can be useful when file names were
  145. truncated during a file transfer</para>
  146. <indexterm zone="ch-system-gzip zforce">
  147. <primary sortas="b-zforce">zforce</primary>
  148. </indexterm>
  149. </listitem>
  150. </varlistentry>
  151. <varlistentry id="zgrep">
  152. <term><command>zgrep</command></term>
  153. <listitem>
  154. <para>Runs <command>grep</command> on gzipped files</para>
  155. <indexterm zone="ch-system-gzip zgrep">
  156. <primary sortas="b-zgrep">zgrep</primary>
  157. </indexterm>
  158. </listitem>
  159. </varlistentry>
  160. <varlistentry id="zless">
  161. <term><command>zless</command></term>
  162. <listitem>
  163. <para>Runs <command>less</command> on gzipped files</para>
  164. <indexterm zone="ch-system-gzip zless">
  165. <primary sortas="b-zless">zless</primary>
  166. </indexterm>
  167. </listitem>
  168. </varlistentry>
  169. <varlistentry id="zmore">
  170. <term><command>zmore</command></term>
  171. <listitem>
  172. <para>Runs <command>more</command> on gzipped files</para>
  173. <indexterm zone="ch-system-gzip zmore">
  174. <primary sortas="b-zmore">zmore</primary>
  175. </indexterm>
  176. </listitem>
  177. </varlistentry>
  178. <varlistentry id="znew">
  179. <term><command>znew</command></term>
  180. <listitem>
  181. <para>Re-compresses files from <command>compress</command> format to
  182. <command>gzip</command> format&mdash;<filename
  183. class="extension">.Z</filename> to <filename
  184. class="extension">.gz</filename></para>
  185. <indexterm zone="ch-system-gzip znew">
  186. <primary sortas="b-znew">znew</primary>
  187. </indexterm>
  188. </listitem>
  189. </varlistentry>
  190. </variablelist>
  191. </sect2>
  192. </sect1>