gzip.xml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  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. <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</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 the <command>gzip</command> program to the <filename
  37. class="directory">/bin</filename> directory and create some commonly used
  38. symlinks to it:</para>
  39. <screen><userinput>mv -v /usr/bin/gzip /bin
  40. rm -v /usr/bin/{gunzip,zcat}
  41. ln -sv gzip /bin/gunzip
  42. ln -sv gzip /bin/zcat
  43. ln -sv gzip /bin/compress
  44. ln -sv gunzip /bin/uncompress</userinput></screen>
  45. </sect2>
  46. <sect2 id="contents-gzip" role="content">
  47. <title>Contents of Gzip</title>
  48. <segmentedlist>
  49. <segtitle>Installed programs</segtitle>
  50. <seglistitem>
  51. <seg>compress (link to gzip), gunzip (link to gzip), gzexe, gzip,
  52. uncompress (link to gunzip), zcat (link to gzip), zcmp, zdiff,
  53. zegrep, zfgrep, zforce, zgrep, zless, zmore, and znew</seg>
  54. </seglistitem>
  55. </segmentedlist>
  56. <variablelist>
  57. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  58. <?dbfo list-presentation="list"?>
  59. <?dbhtml list-presentation="table"?>
  60. <varlistentry id="compress">
  61. <term><command>compress</command></term>
  62. <listitem>
  63. <para>Compresses and decompresses files</para>
  64. <indexterm zone="ch-system-gzip compress">
  65. <primary sortas="b-compress">compress</primary>
  66. </indexterm>
  67. </listitem>
  68. </varlistentry>
  69. <varlistentry id="gunzip">
  70. <term><command>gunzip</command></term>
  71. <listitem>
  72. <para>Decompresses gzipped files</para>
  73. <indexterm zone="ch-system-gzip gunzip">
  74. <primary sortas="b-gunzip">gunzip</primary>
  75. </indexterm>
  76. </listitem>
  77. </varlistentry>
  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. <varlistentry id="gzip">
  88. <term><command>gzip</command></term>
  89. <listitem>
  90. <para>Compresses the given files using Lempel-Ziv (LZ77) coding</para>
  91. <indexterm zone="ch-system-gzip gzip">
  92. <primary sortas="b-gzip">gzip</primary>
  93. </indexterm>
  94. </listitem>
  95. </varlistentry>
  96. <varlistentry id="uncompress">
  97. <term><command>uncompress</command></term>
  98. <listitem>
  99. <para>Decompresses compressed files</para>
  100. <indexterm zone="ch-system-gzip uncompress">
  101. <primary sortas="b-uncompress">uncompress</primary>
  102. </indexterm>
  103. </listitem>
  104. </varlistentry>
  105. <varlistentry id="zcat">
  106. <term><command>zcat</command></term>
  107. <listitem>
  108. <para>Decompresses the given gzipped files to standard output</para>
  109. <indexterm zone="ch-system-gzip zcat">
  110. <primary sortas="b-zcat">zcat</primary>
  111. </indexterm>
  112. </listitem>
  113. </varlistentry>
  114. <varlistentry id="zcmp">
  115. <term><command>zcmp</command></term>
  116. <listitem>
  117. <para>Runs <command>cmp</command> on gzipped files</para>
  118. <indexterm zone="ch-system-gzip zcmp">
  119. <primary sortas="b-zcmp">zcmp</primary>
  120. </indexterm>
  121. </listitem>
  122. </varlistentry>
  123. <varlistentry id="zdiff">
  124. <term><command>zdiff</command></term>
  125. <listitem>
  126. <para>Runs <command>diff</command> on gzipped files</para>
  127. <indexterm zone="ch-system-gzip zdiff">
  128. <primary sortas="b-zdiff">zdiff</primary>
  129. </indexterm>
  130. </listitem>
  131. </varlistentry>
  132. <varlistentry id="zegrep">
  133. <term><command>zegrep</command></term>
  134. <listitem>
  135. <para>Runs <command>egrep</command> on gzipped files</para>
  136. <indexterm zone="ch-system-gzip zegrep">
  137. <primary sortas="b-zegrep">zegrep</primary>
  138. </indexterm>
  139. </listitem>
  140. </varlistentry>
  141. <varlistentry id="zfgrep">
  142. <term><command>zfgrep</command></term>
  143. <listitem>
  144. <para>Runs <command>fgrep</command> on gzipped files</para>
  145. <indexterm zone="ch-system-gzip zfgrep">
  146. <primary sortas="b-zfgrep">zfgrep</primary>
  147. </indexterm>
  148. </listitem>
  149. </varlistentry>
  150. <varlistentry id="zforce">
  151. <term><command>zforce</command></term>
  152. <listitem>
  153. <para>Forces a <filename class="extension">.gz</filename> extension on
  154. all given files that are gzipped files, so that <command>gzip</command>
  155. will not compress them again; this can be useful when file names were
  156. truncated during a file transfer</para>
  157. <indexterm zone="ch-system-gzip zforce">
  158. <primary sortas="b-zforce">zforce</primary>
  159. </indexterm>
  160. </listitem>
  161. </varlistentry>
  162. <varlistentry id="zgrep">
  163. <term><command>zgrep</command></term>
  164. <listitem>
  165. <para>Runs <command>grep</command> on gzipped files</para>
  166. <indexterm zone="ch-system-gzip zgrep">
  167. <primary sortas="b-zgrep">zgrep</primary>
  168. </indexterm>
  169. </listitem>
  170. </varlistentry>
  171. <varlistentry id="zless">
  172. <term><command>zless</command></term>
  173. <listitem>
  174. <para>Runs <command>less</command> on gzipped files</para>
  175. <indexterm zone="ch-system-gzip zless">
  176. <primary sortas="b-zless">zless</primary>
  177. </indexterm>
  178. </listitem>
  179. </varlistentry>
  180. <varlistentry id="zmore">
  181. <term><command>zmore</command></term>
  182. <listitem>
  183. <para>Runs <command>more</command> on gzipped files</para>
  184. <indexterm zone="ch-system-gzip zmore">
  185. <primary sortas="b-zmore">zmore</primary>
  186. </indexterm>
  187. </listitem>
  188. </varlistentry>
  189. <varlistentry id="znew">
  190. <term><command>znew</command></term>
  191. <listitem>
  192. <para>Re-compresses files from <command>compress</command> format to
  193. <command>gzip</command> format&mdash;<filename
  194. class="extension">.Z</filename> to <filename
  195. class="extension">.gz</filename></para>
  196. <indexterm zone="ch-system-gzip znew">
  197. <primary sortas="b-znew">znew</primary>
  198. </indexterm>
  199. </listitem>
  200. </varlistentry>
  201. </variablelist>
  202. </sect2>
  203. </sect1>