findutils.xml 5.6 KB

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