%general-entities; ]> Findutils-&findutils-version; Findutils <para>The Findutils package contains programs to find files. These programs are provided to recursively search through a directory tree and to create, maintain, and search a database (often faster than the recursive find, but unreliable if the database has not been recently updated).</para> </sect2> <sect2 role="installation"> <title>Installation of Findutils Prepare Findutils for compilation: ./configure --prefix=/usr --host=${CLFS_TARGET} \ --libexecdir=/usr/lib/locate --localstatedir=/var/lib/locate The meaning of the configure options: --localstatedir This option changes the location of the locate database to be in /var/lib/locate, which is FHS-compliant. Compile the package: make Install the package: make DESTDIR=${CLFS} install Find from Findutils is used by some of the scripts in the CLFS-Bootscripts package. As /usr may not be available during the early stages of booting, those binaries need to be on the root partition: mv -v ${CLFS}/usr/bin/find ${CLFS}/bin/find Contents of Findutils Installed programs bigram, code, find, frcode, locate, updatedb, and xargs Short Descriptions bigram Was formerly used to produce locate databases bigram code Was formerly used to produce locate databases; it is the ancestor of frcode. code find Searches given directory trees for files matching the specified criteria find frcode Is called by updatedb to compress the list of file names; it uses front-compression, reducing the database size by a factor of four to five. frcode locate Searches through a database of file names and reports the names that contain a given string or match a given pattern locate updatedb Updates the locate database; it scans the entire file system (including other file systems that are currently mounted, unless told not to) and puts every file name it finds into the database updatedb xargs Can be used to apply a given command to a list of files xargs