findutils.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-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>&dependencies;</segtitle>
  22. <seglistitem><seg>Bash, Binutils, Coreutils,
  23. Diffutils, GCC, Gettext, Glibc, Grep, Make and 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 <parameter>localstatedir</parameter> directive above changes the
  32. location of the <command>locate</command> database to be in <filename
  33. class="directory">/var/lib/locate</filename>, 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>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><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  47. <?dbfo list-presentation="list"?>
  48. <?dbhtml list-presentation="table"?>
  49. <varlistentry id="bigram">
  50. <term><command>bigram</command></term>
  51. <listitem>
  52. <para>Was formerly used to produce <command>locate</command> databases</para>
  53. <indexterm zone="ch-system-findutils bigram"><primary sortas="b-bigram">bigram</primary></indexterm>
  54. </listitem>
  55. </varlistentry>
  56. <varlistentry id="code">
  57. <term><command>code</command></term>
  58. <listitem>
  59. <para>Was formerly used to produce <command>locate</command>
  60. databases; it is the ancestor of <command>frcode</command>.</para>
  61. <indexterm zone="ch-system-findutils code"><primary sortas="b-code">code</primary></indexterm>
  62. </listitem>
  63. </varlistentry>
  64. <varlistentry id="find">
  65. <term><command>find</command></term>
  66. <listitem>
  67. <para>Searches given directory trees for files matching the specified criteria</para>
  68. <indexterm zone="ch-system-findutils find"><primary sortas="b-find">find</primary></indexterm>
  69. </listitem>
  70. </varlistentry>
  71. <varlistentry id="frcode">
  72. <term><command>frcode</command></term>
  73. <listitem>
  74. <para>Is called by <command>updatedb</command> to compress the list of file names; it uses
  75. front-compression, reducing the database size by a factor of four to
  76. five.</para>
  77. <indexterm zone="ch-system-findutils frcode"><primary sortas="b-frcode">frcode</primary></indexterm>
  78. </listitem>
  79. </varlistentry>
  80. <varlistentry id="locate">
  81. <term><command>locate</command></term>
  82. <listitem>
  83. <para>Searches through a database of file names and reports the names
  84. that contain a given string or match a given pattern</para>
  85. <indexterm zone="ch-system-findutils locate"><primary sortas="b-locate">locate</primary></indexterm>
  86. </listitem>
  87. </varlistentry>
  88. <varlistentry id="updatedb">
  89. <term><command>updatedb</command></term>
  90. <listitem>
  91. <para>Updates the <command>locate</command> database; it scans
  92. the entire file system (including other file systems that are currently mounted,
  93. unless told not to) and puts every file name it finds into the database</para>
  94. <indexterm zone="ch-system-findutils updatedb"><primary sortas="b-updatedb">updatedb</primary></indexterm>
  95. </listitem>
  96. </varlistentry>
  97. <varlistentry id="xargs">
  98. <term><command>xargs</command></term>
  99. <listitem>
  100. <para>Can be used to apply a given command to a list of files</para>
  101. <indexterm zone="ch-system-findutils xargs"><primary sortas="b-xargs">xargs</primary></indexterm>
  102. </listitem>
  103. </varlistentry>
  104. </variablelist>
  105. </sect2>
  106. </sect1>