소스 검색

chapter06: Translate findutils instruction

Xi Ruoyao 7 년 전
부모
커밋
e4823b8a88
1개의 변경된 파일31개의 추가작업 그리고 32개의 파일을 삭제
  1. 31 32
      chapter06/findutils.xml

+ 31 - 32
chapter06/findutils.xml

@@ -23,10 +23,9 @@
   <sect2 role="package">
     <title/>
 
-    <para>The Findutils package contains programs to find files. These programs
-    are provided to recursively search through a directory tree and to
-    create, maintain, and search a database (often faster than the recursive
-    find, but unreliable if the database has not been recently updated).</para>
+	<para>Findutils 软件包包含用于查找文件的程序。
+		这些程序能够递归地搜索目录树,以及创建、维护和搜索数据库
+		(一般比递归搜索快,但在数据库最近没有更新时不可靠)</para>
 
     <segmentedlist>
       <segtitle>&buildtime;</segtitle>
@@ -41,12 +40,12 @@
   </sect2>
 
   <sect2 role="installation">
-    <title>安装Findutils</title>
+    <title>安装 Findutils</title>
 
    <!-- this has been fixed in upstream gnulib, when a new version of
    findutils is released, please check #4055 to see if the change has been
    picked up in this package -->
-   <para>First, suppress a test which on some machines can loop forever:</para>
+   <para>首先,禁用一个在某些机器上会无限循环的测试:</para>
 
 <screen><userinput remap="pre">sed -i 's/test-lock..EXEEXT.//' tests/Makefile.in</userinput></screen>
 
@@ -55,14 +54,16 @@
 <screen><userinput remap="configure">./configure --prefix=/usr --localstatedir=/var/lib/locate</userinput></screen>
 
     <variablelist>
-      <title>The meaning of the configure options:</title>
+      <title>配置选项的含义:</title>
 
       <varlistentry>
         <term><parameter>--localstatedir</parameter></term>
         <listitem>
-          <para>This option changes the location of the <command>locate</command>
-          database to be in <filename class="directory">/var/lib/locate</filename>,
-          which is FHS-compliant.</para>
+          <para>该选项将 <command>locate</command>
+			  数据库的位置改为
+			  <filename class="directory">/var/lib/locate</filename>,
+			  以与 FHS 兼容。
+		  </para>
         </listitem>
       </varlistentry>
 
@@ -80,16 +81,16 @@
 
 <screen><userinput remap="install">make install</userinput></screen>
 
-    <para revision="sysv">Some of the scripts in the LFS-Bootscripts package
-    depend on <command>find</command>.  As <filename
-    class="directory">/usr</filename> may not be available during the early
-    stages of booting, this program needs to be on the root partition.  The
-    <command>updatedb</command> script also needs to be modified to correct an
-    explicit path:</para>
+    <para revision="sysv">LFS-Bootscripts 软件包中的某些脚本依赖于
+    	<command>find</command>。由于
+		<filename class="directory">/usr</filename>
+		在引导早期阶段可能不可用,需要将这个程序移动到根分区。
+		<command>updatedb</command> 脚本也需要进行修改,
+		以修正一个显式指定的路径:</para>
 
-    <para revision="systemd"> Some packages in BLFS and beyond expect the
-    <command>find</command> program in <filename
-    class="directory">/bin</filename>, so make sure it's placed there:</para>
+    <para revision="systemd"> BLFS 及 BLFS 之外的一些软件包预期
+    <command>find</command> 程序在 <filename
+    class="directory">/bin</filename> 中,因此要保证它被放置在那里:</para>
 
 <screen><userinput remap="install">mv -v /usr/bin/find /bin
 sed -i 's|find:=${BINDIR}|find:=/bin|' /usr/bin/updatedb</userinput></screen>
@@ -103,7 +104,7 @@ sed -i 's|find:=${BINDIR}|find:=/bin|' /usr/bin/updatedb</userinput></screen>
       <segtitle>安装的程序</segtitle>
 
       <seglistitem>
-        <seg>code, find, locate, oldfind, updatedb, and xargs</seg>
+        <seg>code, find, locate, oldfind, updatedb, 以及 xargs</seg>
       </seglistitem>
     </segmentedlist>
 
@@ -115,8 +116,8 @@ sed -i 's|find:=${BINDIR}|find:=/bin|' /usr/bin/updatedb</userinput></screen>
       <varlistentry id="code">
         <term><command>code</command></term>
         <listitem>
-          <para>Was formerly used to produce <command>locate</command>
-          databases; it is the ancestor of <command>frcode</command></para>
+          <para>曾经被用于创建 <command>locate</command>
+          数据库;是 <command>frcode</command> 的前身</para>
           <indexterm zone="ch-system-findutils code">
             <primary sortas="b-code">code</primary>
           </indexterm>
@@ -126,8 +127,7 @@ sed -i 's|find:=${BINDIR}|find:=/bin|' /usr/bin/updatedb</userinput></screen>
       <varlistentry id="find">
         <term><command>find</command></term>
         <listitem>
-          <para>Searches given directory trees for files matching the specified
-          criteria</para>
+          <para>在给定目录树中搜索满足给定条件的文件</para>
           <indexterm zone="ch-system-findutils find">
             <primary sortas="b-find">find</primary>
           </indexterm>
@@ -137,8 +137,8 @@ sed -i 's|find:=${BINDIR}|find:=/bin|' /usr/bin/updatedb</userinput></screen>
       <varlistentry id="locate">
         <term><command>locate</command></term>
         <listitem>
-          <para>Searches through a database of file names and reports the names
-          that contain a given string or match a given pattern</para>
+          <para>在文件名数据库中进行搜索,
+          	  报告包含特定字符串或匹配特定模式的文件名</para>
           <indexterm zone="ch-system-findutils locate">
             <primary sortas="b-locate">locate</primary>
           </indexterm>
@@ -148,7 +148,7 @@ sed -i 's|find:=${BINDIR}|find:=/bin|' /usr/bin/updatedb</userinput></screen>
       <varlistentry id="oldfind">
         <term><command>oldfind</command></term>
         <listitem>
-          <para>Older version of find, using a different algorithm</para>
+          <para>旧版的 find ,使用不同的算法</para>
           <indexterm zone="ch-system-findutils oldfind">
             <primary sortas="b-oldfind">oldfind</primary>
           </indexterm>
@@ -158,10 +158,9 @@ sed -i 's|find:=${BINDIR}|find:=/bin|' /usr/bin/updatedb</userinput></screen>
       <varlistentry id="updatedb">
       <term><command>updatedb</command></term>
         <listitem>
-          <para>Updates the <command>locate</command> database; it scans the
-          entire file system (including other file systems that are currently
-          mounted, unless told not to) and puts every file name it finds into
-          the database</para>
+          <para>更新 <command>locate</command> 数据库;
+			  它扫描整个文件系统(包括当前挂载的其他文件系统,
+			  除非被告知不这样做),并把找到的所有文件名加入数据库</para>
           <indexterm zone="ch-system-findutils updatedb">
             <primary sortas="b-updatedb">updatedb</primary>
           </indexterm>
@@ -171,7 +170,7 @@ sed -i 's|find:=${BINDIR}|find:=/bin|' /usr/bin/updatedb</userinput></screen>
       <varlistentry id="xargs">
         <term><command>xargs</command></term>
         <listitem>
-          <para>Can be used to apply a given command to a list of files</para>
+          <para>可以将给定命令作用于一个列表中的所有文件</para>
           <indexterm zone="ch-system-findutils xargs">
             <primary sortas="b-xargs">xargs</primary>
           </indexterm>