findutils.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. These programs
  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.1 SBU</seg><seg>9.4 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/findutils \
  30. --localstatedir=/var/lib/locate</userinput></screen>
  31. <para>The meaning of the configure options:</para>
  32. <variablelist>
  33. <varlistentry>
  34. <term><parameter>--localstatedir</parameter></term>
  35. <listitem><para>This option changes the location of the <command>locate</command>
  36. database to be in <filename class="directory">/var/lib/locate</filename>, which
  37. is FHS-compliant.</para></listitem>
  38. </varlistentry>
  39. </variablelist>
  40. <para>Compile the package:</para>
  41. <screen><userinput>make</userinput></screen>
  42. <para>To test the results, issue:
  43. <userinput>make check</userinput>.</para>
  44. <para>Install the package:</para>
  45. <screen><userinput>make install</userinput></screen>
  46. </sect2>
  47. <sect2 id="contents-findutils" role="content"><title>Contents of Findutils</title>
  48. <segmentedlist>
  49. <segtitle>Installed programs</segtitle>
  50. <seglistitem><seg>bigram, code, find, frcode, locate, updatedb, and xargs</seg></seglistitem>
  51. </segmentedlist>
  52. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  53. <?dbfo list-presentation="list"?>
  54. <?dbhtml list-presentation="table"?>
  55. <varlistentry id="bigram">
  56. <term><command>bigram</command></term>
  57. <listitem>
  58. <para>Was formerly used to produce <command>locate</command> databases</para>
  59. <indexterm zone="ch-system-findutils bigram"><primary sortas="b-bigram">bigram</primary></indexterm>
  60. </listitem>
  61. </varlistentry>
  62. <varlistentry id="code">
  63. <term><command>code</command></term>
  64. <listitem>
  65. <para>Was formerly used to produce <command>locate</command>
  66. databases; it is the ancestor of <command>frcode</command>.</para>
  67. <indexterm zone="ch-system-findutils code"><primary sortas="b-code">code</primary></indexterm>
  68. </listitem>
  69. </varlistentry>
  70. <varlistentry id="find">
  71. <term><command>find</command></term>
  72. <listitem>
  73. <para>Searches given directory trees for files matching the specified criteria</para>
  74. <indexterm zone="ch-system-findutils find"><primary sortas="b-find">find</primary></indexterm>
  75. </listitem>
  76. </varlistentry>
  77. <varlistentry id="frcode">
  78. <term><command>frcode</command></term>
  79. <listitem>
  80. <para>Is called by <command>updatedb</command> to compress the list of file names; it uses
  81. front-compression, reducing the database size by a factor of four to
  82. five.</para>
  83. <indexterm zone="ch-system-findutils frcode"><primary sortas="b-frcode">frcode</primary></indexterm>
  84. </listitem>
  85. </varlistentry>
  86. <varlistentry id="locate">
  87. <term><command>locate</command></term>
  88. <listitem>
  89. <para>Searches through a database of file names and reports the names
  90. that contain a given string or match a given pattern</para>
  91. <indexterm zone="ch-system-findutils locate"><primary sortas="b-locate">locate</primary></indexterm>
  92. </listitem>
  93. </varlistentry>
  94. <varlistentry id="updatedb">
  95. <term><command>updatedb</command></term>
  96. <listitem>
  97. <para>Updates the <command>locate</command> database; it scans
  98. the entire file system (including other file systems that are currently mounted,
  99. unless told not to) and puts every file name it finds into the database</para>
  100. <indexterm zone="ch-system-findutils updatedb"><primary sortas="b-updatedb">updatedb</primary></indexterm>
  101. </listitem>
  102. </varlistentry>
  103. <varlistentry id="xargs">
  104. <term><command>xargs</command></term>
  105. <listitem>
  106. <para>Can be used to apply a given command to a list of files</para>
  107. <indexterm zone="ch-system-findutils xargs"><primary sortas="b-xargs">xargs</primary></indexterm>
  108. </listitem>
  109. </varlistentry>
  110. </variablelist>
  111. </sect2>
  112. </sect1>