gzip.xml 7.0 KB

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