findutils.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-findutils" xreflabel="Findutils" role="wrap">
  7. <title>Findutils-&findutils-version;</title>
  8. <?dbhtml filename="findutils.html"?>
  9. <indexterm zone="ch-system-findutils"><primary sortas="a-Findutils">Findutils</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <para>The Findutils package contains programs to find files. Processes
  12. are provided to recursively search through a directory tree and to
  13. create, maintain and search a database (often faster than the recursive
  14. find, but unreliable if the database has not been recently updated).</para>
  15. <segmentedlist>
  16. <segtitle>&buildtime;</segtitle>
  17. <segtitle>&diskspace;</segtitle>
  18. <seglistitem><seg>0.2 SBU</seg><seg>7.5 MB</seg></seglistitem>
  19. </segmentedlist>
  20. <segmentedlist>
  21. <segtitle>Findutils installation depends on</segtitle>
  22. <seglistitem><seg>Bash, Binutils, Coreutils,
  23. Diffutils, GCC, Gettext, Glibc, Grep, Make, Sed</seg></seglistitem>
  24. </segmentedlist>
  25. </sect2>
  26. <sect2 role="installation">
  27. <title>Installation of Findutils</title>
  28. <para>Prepare Findutils for compilation:</para>
  29. <screen><userinput>./configure --prefix=/usr --libexecdir=/usr/lib/locate \
  30. --localstatedir=/var/lib/locate</userinput></screen>
  31. <para>The localstatedir directive above changes the location of the locate
  32. database to be in <filename class="directory">/var/lib/locate</filename>,
  33. which is FHS-compliant.</para>
  34. <para>Compile the package:</para>
  35. <screen><userinput>make</userinput></screen>
  36. <para>To test the results, issue:
  37. <userinput>make check</userinput>.</para>
  38. <para>Now install the package:</para>
  39. <screen><userinput>make install</userinput></screen>
  40. </sect2>
  41. <sect2 id="contents-findutils" role="content"><title>Contents of Findutils</title>
  42. <segmentedlist>
  43. <segtitle>Installed programs</segtitle>
  44. <seglistitem><seg>bigram, code, find, frcode, locate, updatedb and xargs</seg></seglistitem>
  45. </segmentedlist>
  46. <variablelist><title>Short descriptions</title>
  47. <varlistentry id="bigram">
  48. <term><command>bigram</command></term>
  49. <listitem>
  50. <indexterm zone="ch-system-findutils bigram"><primary sortas="b-bigram">bigram</primary></indexterm>
  51. <para>was formerly used to produce <command>locate</command> databases.</para>
  52. </listitem>
  53. </varlistentry>
  54. <varlistentry id="code">
  55. <term><command>code</command></term>
  56. <listitem>
  57. <indexterm zone="ch-system-findutils code"><primary sortas="b-code">code</primary></indexterm>
  58. <para>was formerly used to produce <command>locate</command>
  59. databases. It is the ancestor of <command>frcode</command>.</para>
  60. </listitem>
  61. </varlistentry>
  62. <varlistentry id="find">
  63. <term><command>find</command></term>
  64. <listitem>
  65. <indexterm zone="ch-system-findutils find"><primary sortas="b-find">find</primary></indexterm>
  66. <para>searches given directory trees for files matching the specified criteria.</para>
  67. </listitem>
  68. </varlistentry>
  69. <varlistentry id="frcode">
  70. <term><command>frcode</command></term>
  71. <listitem>
  72. <indexterm zone="ch-system-findutils frcode"><primary sortas="b-frcode">frcode</primary></indexterm>
  73. <para>is called by <command>updatedb</command> to compress the list of file names. It uses
  74. front-compression, reducing the database size by a factor of 4 to 5.</para>
  75. </listitem>
  76. </varlistentry>
  77. <varlistentry id="locate">
  78. <term><command>locate</command></term>
  79. <listitem>
  80. <indexterm zone="ch-system-findutils locate"><primary sortas="b-locate">locate</primary></indexterm>
  81. <para>searches through a database of file names,
  82. and reports the names that contain a given string or match a given pattern.</para>
  83. </listitem>
  84. </varlistentry>
  85. <varlistentry id="updatedb">
  86. <term><command>updatedb</command></term>
  87. <listitem>
  88. <indexterm zone="ch-system-findutils updatedb"><primary sortas="b-updatedb">updatedb</primary></indexterm>
  89. <para>updates the <command>locate</command> database. It scans
  90. the entire file system (including other file systems that are currently mounted,
  91. unless told not to) and puts every file name it finds in the database.</para>
  92. </listitem>
  93. </varlistentry>
  94. <varlistentry id="xargs">
  95. <term><command>xargs</command></term>
  96. <listitem>
  97. <indexterm zone="ch-system-findutils xargs"><primary sortas="b-xargs">xargs</primary></indexterm>
  98. <para>can be used to apply a given command to a list of files.</para>
  99. </listitem>
  100. </varlistentry>
  101. </variablelist>
  102. </sect2>
  103. </sect1>