浏览代码

chapter06: Translate gzip instruction

Xi Ruoyao 7 年之前
父节点
当前提交
1d10503159
共有 1 个文件被更改,包括 26 次插入28 次删除
  1. 26 28
      chapter06/gzip.xml

+ 26 - 28
chapter06/gzip.xml

@@ -23,8 +23,7 @@
   <sect2 role="package">
     <title/>
 
-    <para>The Gzip package contains programs for compressing and decompressing
-    files.</para>
+    <para>Gzip 软件包包含压缩和解压缩文件的程序。</para>
 
     <segmentedlist>
       <segtitle>&buildtime;</segtitle>
@@ -39,7 +38,7 @@
   </sect2>
 
   <sect2 role="installation">
-    <title>安装Gzip</title>
+    <title>安装 Gzip</title>
 
     <para>准备安装 Gzip:</para>
 
@@ -53,14 +52,13 @@
 
 <screen><userinput remap="test">make check</userinput></screen>
 
-    <para>Two tests are known to fail in the LFS environment:
-    help-version and zmore.</para>
+    <para>已知两个测试可能在 LFS 环境中失败:help-version 和 zmore。</para>
 
     <para>安装该软件包:</para>
 
 <screen><userinput remap="install">make install</userinput></screen>
 
-    <para>Move a program that needs to be on the root filesystem:</para>
+    <para>移动一个必须放置在根文件系统的程序:</para>
 
 <screen><userinput remap="install">mv -v /usr/bin/gzip /bin</userinput></screen>
 
@@ -73,8 +71,8 @@
       <segtitle>安装的程序</segtitle>
 
       <seglistitem>
-        <seg>gunzip, gzexe, gzip, uncompress (hard link with gunzip), zcat, zcmp, 
-        zdiff, zegrep, zfgrep, zforce, zgrep, zless, zmore, and znew</seg>
+        <seg>gunzip, gzexe, gzip, uncompress (与 gunzip 互为硬链接), zcat, zcmp, 
+        zdiff, zegrep, zfgrep, zforce, zgrep, zless, zmore, 以及 znew</seg>
       </seglistitem>
     </segmentedlist>
 
@@ -86,7 +84,7 @@
       <varlistentry id="gunzip">
         <term><command>gunzip</command></term>
         <listitem>
-          <para>Decompresses gzipped files</para>
+          <para>解压缩 gzip 压缩的文件</para>
           <indexterm zone="ch-system-gzip gunzip">
             <primary sortas="b-gunzip">gunzip</primary>
           </indexterm>
@@ -96,7 +94,7 @@
       <varlistentry id="gzexe">
         <term><command>gzexe</command></term>
         <listitem>
-          <para>Creates self-decompressing executable files</para>
+          <para>创建自解压可执行文件</para>
           <indexterm zone="ch-system-gzip gzexe">
             <primary sortas="b-gzexe">gzexe</primary>
           </indexterm>
@@ -106,7 +104,7 @@
       <varlistentry id="gzip">
         <term><command>gzip</command></term>
         <listitem>
-          <para>Compresses the given files using Lempel-Ziv (LZ77) coding</para>
+          <para>使用 Lempel-Ziv (LZ77) 编码压缩文件</para>
           <indexterm zone="ch-system-gzip gzip">
             <primary sortas="b-gzip">gzip</primary>
           </indexterm>
@@ -116,7 +114,7 @@
       <varlistentry id="uncompress">
         <term><command>uncompress</command></term>
         <listitem>
-          <para>Decompresses compressed files</para>
+          <para>解压压缩文件</para>
           <indexterm zone="ch-system-gzip uncompress">
             <primary sortas="b-uncompress">uncompress</primary>
           </indexterm>
@@ -126,7 +124,7 @@
       <varlistentry id="zcat">
         <term><command>zcat</command></term>
         <listitem>
-          <para>Decompresses the given gzipped files to standard output</para>
+          <para>将给定 gzip 压缩文件解压到标准输出</para>
           <indexterm zone="ch-system-gzip zcat">
             <primary sortas="b-zcat">zcat</primary>
           </indexterm>
@@ -136,7 +134,7 @@
       <varlistentry id="zcmp">
         <term><command>zcmp</command></term>
         <listitem>
-          <para>Runs <command>cmp</command> on gzipped files</para>
+          <para>在 gzip 压缩文件上运行 <command>cmp</command></para>
           <indexterm zone="ch-system-gzip zcmp">
             <primary sortas="b-zcmp">zcmp</primary>
           </indexterm>
@@ -146,7 +144,7 @@
       <varlistentry id="zdiff">
         <term><command>zdiff</command></term>
         <listitem>
-          <para>Runs <command>diff</command> on gzipped files</para>
+          <para>在 gzip 压缩文件上运行 <command>diff</command></para>
           <indexterm zone="ch-system-gzip zdiff">
             <primary sortas="b-zdiff">zdiff</primary>
           </indexterm>
@@ -156,7 +154,7 @@
       <varlistentry id="zegrep">
         <term><command>zegrep</command></term>
         <listitem>
-          <para>Runs <command>egrep</command> on gzipped files</para>
+          <para>在 gzip 压缩文件上运行 <command>egrep</command></para>
           <indexterm zone="ch-system-gzip zegrep">
             <primary sortas="b-zegrep">zegrep</primary>
           </indexterm>
@@ -166,7 +164,7 @@
       <varlistentry id="zfgrep">
         <term><command>zfgrep</command></term>
         <listitem>
-          <para>Runs <command>fgrep</command> on gzipped files</para>
+          <para>在 gzip 压缩文件上运行 <command>fgrep</command></para>
           <indexterm zone="ch-system-gzip zfgrep">
             <primary sortas="b-zfgrep">zfgrep</primary>
           </indexterm>
@@ -176,10 +174,10 @@
       <varlistentry id="zforce">
         <term><command>zforce</command></term>
         <listitem>
-          <para>Forces a <filename class="extension">.gz</filename> extension on
-          all given files that are gzipped files, so that <command>gzip</command>
-          will not compress them again; this can be useful when file names were
-          truncated during a file transfer</para>
+          <para>为给定所有文件中的 gzip 压缩文件确保
+			  <filename class="extension">.gz</filename> 扩展名,
+			  这样 <command>gzip</command> 就不会重复压缩它们;
+			  在文件传输过程中文件名被截断时,这个命令很有用</para>
           <indexterm zone="ch-system-gzip zforce">
             <primary sortas="b-zforce">zforce</primary>
           </indexterm>
@@ -189,7 +187,7 @@
       <varlistentry id="zgrep">
         <term><command>zgrep</command></term>
         <listitem>
-          <para>Runs <command>grep</command> on gzipped files</para>
+          <para>在 gzip 压缩文件上运行 <command>grep</command></para>
           <indexterm zone="ch-system-gzip zgrep">
             <primary sortas="b-zgrep">zgrep</primary>
           </indexterm>
@@ -199,7 +197,7 @@
       <varlistentry id="zless">
         <term><command>zless</command></term>
         <listitem>
-          <para>Runs <command>less</command> on gzipped files</para>
+          <para>在 gzip 压缩文件上运行 <command>less</command></para>
           <indexterm zone="ch-system-gzip zless">
             <primary sortas="b-zless">zless</primary>
           </indexterm>
@@ -209,7 +207,7 @@
       <varlistentry id="zmore">
         <term><command>zmore</command></term>
         <listitem>
-          <para>Runs <command>more</command> on gzipped files</para>
+          <para>在 gzip 压缩文件上运行 <command>more</command></para>
           <indexterm zone="ch-system-gzip zmore">
             <primary sortas="b-zmore">zmore</primary>
           </indexterm>
@@ -219,10 +217,10 @@
       <varlistentry id="znew">
         <term><command>znew</command></term>
         <listitem>
-          <para>Re-compresses files from <command>compress</command> format to
-          <command>gzip</command> format&mdash;<filename
-          class="extension">.Z</filename> to <filename
-          class="extension">.gz</filename></para>
+          <para>将 <command>compress</command> 格式压缩文件重新压缩为
+          <command>gzip</command> 格式 —— 转换 <filename
+          class="extension">.Z</filename> 文件为 <filename
+          class="extension">.gz</filename> 文件</para>
           <indexterm zone="ch-system-gzip znew">
             <primary sortas="b-znew">znew</primary>
           </indexterm>