findutils.xml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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-findutils" role="wrap">
  8. <?dbhtml filename="findutils.html"?>
  9. <sect1info condition="script">
  10. <productname>findutils</productname>
  11. <productnumber>&findutils-version;</productnumber>
  12. <address>&findutils-url;</address>
  13. </sect1info>
  14. <title>Findutils-&findutils-version;</title>
  15. <indexterm zone="ch-system-findutils">
  16. <primary sortas="a-Findutils">Findutils</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Findutils package contains programs to find files. These programs
  21. are provided to recursively search through a directory tree and to
  22. create, maintain, and search a database (often faster than the recursive
  23. find, but unreliable if the database has not been recently updated).</para>
  24. <segmentedlist>
  25. <segtitle>&buildtime;</segtitle>
  26. <segtitle>&diskspace;</segtitle>
  27. <seglistitem>
  28. <seg>&findutils-ch6-sbu;</seg>
  29. <seg>&findutils-ch6-du;</seg>
  30. </seglistitem>
  31. </segmentedlist>
  32. </sect2>
  33. <sect2 role="installation">
  34. <title>Installation of Findutils</title>
  35. <para>Prepare Findutils for compilation:</para>
  36. <screen><userinput remap="configure">./configure --prefix=/usr --localstatedir=/var/lib/locate</userinput></screen>
  37. <variablelist>
  38. <title>The meaning of the configure options:</title>
  39. <varlistentry>
  40. <term><parameter>--localstatedir</parameter></term>
  41. <listitem>
  42. <para>This option changes the location of the <command>locate</command>
  43. database to be in <filename class="directory">/var/lib/locate</filename>,
  44. which is FHS-compliant.</para>
  45. </listitem>
  46. </varlistentry>
  47. </variablelist>
  48. <para>Compile the package:</para>
  49. <screen><userinput remap="make">make</userinput></screen>
  50. <para>To test the results, issue:</para>
  51. <screen><userinput remap="test">make check</userinput></screen>
  52. <para>Install the package:</para>
  53. <screen><userinput remap="install">make install</userinput></screen>
  54. </sect2>
  55. <sect2 id="contents-findutils" role="content">
  56. <title>Contents of Findutils</title>
  57. <segmentedlist>
  58. <segtitle>Installed programs</segtitle>
  59. <segtitle>Installed directory</segtitle>
  60. <seglistitem>
  61. <seg>bigram, code, find, frcode, locate, oldfind, updatedb, and xargs</seg>
  62. <seg>/usr/lib/findutils</seg>
  63. </seglistitem>
  64. </segmentedlist>
  65. <variablelist>
  66. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  67. <?dbfo list-presentation="list"?>
  68. <?dbhtml list-presentation="table"?>
  69. <varlistentry id="bigram">
  70. <term><command>bigram</command></term>
  71. <listitem>
  72. <para>Was formerly used to produce <command>locate</command>
  73. databases</para>
  74. <indexterm zone="ch-system-findutils bigram">
  75. <primary sortas="b-bigram">bigram</primary>
  76. </indexterm>
  77. </listitem>
  78. </varlistentry>
  79. <varlistentry id="code">
  80. <term><command>code</command></term>
  81. <listitem>
  82. <para>Was formerly used to produce <command>locate</command>
  83. databases; it is the ancestor of <command>frcode</command>.</para>
  84. <indexterm zone="ch-system-findutils code">
  85. <primary sortas="b-code">code</primary>
  86. </indexterm>
  87. </listitem>
  88. </varlistentry>
  89. <varlistentry id="find">
  90. <term><command>find</command></term>
  91. <listitem>
  92. <para>Searches given directory trees for files matching the specified
  93. criteria</para>
  94. <indexterm zone="ch-system-findutils find">
  95. <primary sortas="b-find">find</primary>
  96. </indexterm>
  97. </listitem>
  98. </varlistentry>
  99. <varlistentry id="frcode">
  100. <term><command>frcode</command></term>
  101. <listitem>
  102. <para>Is called by <command>updatedb</command> to compress the list
  103. of file names; it uses front-compression, reducing the database size
  104. by a factor of four to five.</para>
  105. <indexterm zone="ch-system-findutils frcode">
  106. <primary sortas="b-frcode">frcode</primary>
  107. </indexterm>
  108. </listitem>
  109. </varlistentry>
  110. <varlistentry id="locate">
  111. <term><command>locate</command></term>
  112. <listitem>
  113. <para>Searches through a database of file names and reports the names
  114. that contain a given string or match a given pattern</para>
  115. <indexterm zone="ch-system-findutils locate">
  116. <primary sortas="b-locate">locate</primary>
  117. </indexterm>
  118. </listitem>
  119. </varlistentry>
  120. <varlistentry id="oldfind">
  121. <term><command>oldfind</command></term>
  122. <listitem>
  123. <para>Older version of find, using a different algorithm</para>
  124. <indexterm zone="ch-system-findutils oldfind">
  125. <primary sortas="b-oldfind">oldfind</primary>
  126. </indexterm>
  127. </listitem>
  128. </varlistentry>
  129. <varlistentry id="updatedb">
  130. <term><command>updatedb</command></term>
  131. <listitem>
  132. <para>Updates the <command>locate</command> database; it scans the
  133. entire file system (including other file systems that are currently
  134. mounted, unless told not to) and puts every file name it finds into
  135. the database</para>
  136. <indexterm zone="ch-system-findutils updatedb">
  137. <primary sortas="b-updatedb">updatedb</primary>
  138. </indexterm>
  139. </listitem>
  140. </varlistentry>
  141. <varlistentry id="xargs">
  142. <term><command>xargs</command></term>
  143. <listitem>
  144. <para>Can be used to apply a given command to a list of files</para>
  145. <indexterm zone="ch-system-findutils xargs">
  146. <primary sortas="b-xargs">xargs</primary>
  147. </indexterm>
  148. </listitem>
  149. </varlistentry>
  150. </variablelist>
  151. </sect2>
  152. </sect1>