Changeset 3f0c882 for chapter06/findutils.xml
- Timestamp:
- 12/21/2004 07:38:32 PM (19 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 3d36131c
- Parents:
- aaa3260
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/findutils.xml
raaa3260 r3f0c882 11 11 12 12 <sect2 role="package"><title/> 13 <para>The Findutils package contains programs to find files. Processes14 are provided to recursively search through a directory tree and to15 create, maintain and search a database (often faster than the recursive16 find, but unreliable if the database has not been recently updated).</para>17 13 18 14 <segmentedlist> … … 22 18 </segmentedlist> 23 19 24 <segmentedlist>25 <segtitle>Findutils installation depends on</segtitle>26 <seglistitem><seg>Bash, Binutils, Coreutils,27 Diffutils, GCC, Gettext, Glibc, Grep, Make, Sed</seg></seglistitem>28 </segmentedlist>29 20 </sect2> 30 21 … … 36 27 <screen><userinput>./configure --prefix=/usr --libexecdir=/usr/lib/locate \ 37 28 --localstatedir=/var/lib/locate</userinput></screen> 38 39 <para>The localstatedir directive above changes the location of the locate40 database to be in <filename class="directory">/var/lib/locate</filename>,41 which is FHS-compliant.</para>42 29 43 30 <para>Compile the package:</para> … … 57 44 <sect2 id="contents-findutils" role="content"><title>Contents of Findutils</title> 58 45 59 <segmentedlist> 60 <segtitle>Installed programs</segtitle> 61 <seglistitem><seg>bigram, code, find, frcode, locate, updatedb and xargs</seg></seglistitem> 62 </segmentedlist> 63 64 <variablelist><title>Short descriptions</title> 65 66 <varlistentry id="bigram"> 67 <term><command>bigram</command></term> 68 <listitem> 69 <indexterm zone="ch-system-findutils bigram"><primary sortas="b-bigram">bigram</primary></indexterm> 70 <para>was formerly used to produce <command>locate</command> databases.</para> 71 </listitem> 72 </varlistentry> 73 74 <varlistentry id="code"> 75 <term><command>code</command></term> 76 <listitem> 77 <indexterm zone="ch-system-findutils code"><primary sortas="b-code">code</primary></indexterm> 78 <para>was formerly used to produce <command>locate</command> 79 databases. It is the ancestor of <command>frcode</command>.</para> 80 </listitem> 81 </varlistentry> 82 83 <varlistentry id="find"> 84 <term><command>find</command></term> 85 <listitem> 86 <indexterm zone="ch-system-findutils find"><primary sortas="b-find">find</primary></indexterm> 87 <para>searches given directory trees for files matching the specified criteria.</para> 88 </listitem> 89 </varlistentry> 90 91 <varlistentry id="frcode"> 92 <term><command>frcode</command></term> 93 <listitem> 94 <indexterm zone="ch-system-findutils frcode"><primary sortas="b-frcode">frcode</primary></indexterm> 95 <para>is called by <command>updatedb</command> to compress the list of file names. It uses 96 front-compression, reducing the database size by a factor of 4 to 5.</para> 97 </listitem> 98 </varlistentry> 99 100 <varlistentry id="locate"> 101 <term><command>locate</command></term> 102 <listitem> 103 <indexterm zone="ch-system-findutils locate"><primary sortas="b-locate">locate</primary></indexterm> 104 <para>searches through a database of file names, 105 and reports the names that contain a given string or match a given pattern.</para> 106 </listitem> 107 </varlistentry> 108 109 <varlistentry id="updatedb"> 110 <term><command>updatedb</command></term> 111 <listitem> 112 <indexterm zone="ch-system-findutils updatedb"><primary sortas="b-updatedb">updatedb</primary></indexterm> 113 <para>updates the <command>locate</command> database. It scans 114 the entire file system (including other file systems that are currently mounted, 115 unless told not to) and puts every file name it finds in the database.</para> 116 </listitem> 117 </varlistentry> 118 119 <varlistentry id="xargs"> 120 <term><command>xargs</command></term> 121 <listitem> 122 <indexterm zone="ch-system-findutils xargs"><primary sortas="b-xargs">xargs</primary></indexterm> 123 <para>can be used to apply a given command to a list of files.</para> 124 </listitem> 125 </varlistentry> 126 </variablelist> 46 <para>See testing</para> 127 47 128 48 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.