source: chapter06/findutils.xml@ 29723b9

Last change on this file since 29723b9 was 6a0e6f3, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Remove the spurious <info> tags that I thought were necessary but evidently aren't

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/LFS-RNG/BOOK@4387 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 4.4 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[1fe35e1]2<!DOCTYPE section [
[673b0d8]3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
[1fe35e1]6<section xmlns="http://docbook.org/docbook-ng"
7 xml:id="ch-system-findutils" xreflabel="Findutils" role="wrap">
[6a0e6f3]8<title>Findutils-&findutils-version;</title>
[673b0d8]9<?dbhtml filename="findutils.html"?>
[6370fa6]10
[673b0d8]11<indexterm zone="ch-system-findutils"><primary sortas="a-Findutils">Findutils</primary></indexterm>
[5888299]12
[6a0e6f3]13<section role="package"><title/>
[673b0d8]14<para>The Findutils package contains programs to find files. Processes
15are provided to recursively search through a directory tree and to
16create, maintain and search a database (often faster than the recursive
17find, but unreliable if the database has not been recently updated).</para>
18
[a001133]19<segmentedlist>
20<segtitle>&buildtime;</segtitle>
21<segtitle>&diskspace;</segtitle>
22<seglistitem><seg>0.2 SBU</seg><seg>7.5 MB</seg></seglistitem>
23</segmentedlist>
[673b0d8]24
[a001133]25<segmentedlist>
26<segtitle>Findutils installation depends on</segtitle>
27<seglistitem><seg>Bash, Binutils, Coreutils,
28Diffutils, GCC, Gettext, Glibc, Grep, Make, Sed</seg></seglistitem>
29</segmentedlist>
[1fe35e1]30</section>
[3554fa3a]31
[1fe35e1]32<section role="installation">
[6a0e6f3]33<title>Installation of Findutils</title>
[73aedd1d]34
35<para>Prepare Findutils for compilation:</para>
36
[2a264e0b]37<screen><userinput>./configure --prefix=/usr --libexecdir=/usr/lib/locate \
[9dfc02f]38 --localstatedir=/var/lib/locate</userinput></screen>
[73aedd1d]39
[2a264e0b]40<para>The localstatedir directive above changes the location of the locate
[bb55064]41database to be in <filename class="directory">/var/lib/locate</filename>,
42which is FHS-compliant.</para>
[73aedd1d]43
44<para>Compile the package:</para>
45
46<screen><userinput>make</userinput></screen>
47
[673b0d8]48<para>To test the results, issue:
[8a5f906]49<userinput>make check</userinput>.</para>
[73aedd1d]50
[673b0d8]51<para>Now install the package:</para>
[73aedd1d]52
53<screen><userinput>make install</userinput></screen>
54
[1fe35e1]55</section>
[6370fa6]56
[5888299]57
[6a0e6f3]58<section xml:id="contents-findutils" role="content"><title>Contents of Findutils</title>
[673b0d8]59
[c6cb3aa]60<segmentedlist>
61<segtitle>Installed programs</segtitle>
62<seglistitem><seg>bigram, code, find, frcode, locate, updatedb and xargs</seg></seglistitem>
63</segmentedlist>
[673b0d8]64
[c6cb3aa]65<variablelist><title>Short descriptions</title>
[673b0d8]66
[1fe35e1]67<varlistentry xml:id="bigram">
[b8a819f]68<term><command>bigram</command></term>
[c6cb3aa]69<listitem>
[673b0d8]70<indexterm zone="ch-system-findutils bigram"><primary sortas="b-bigram">bigram</primary></indexterm>
[bb55064]71<para>was formerly used to produce <command>locate</command> databases.</para>
[c6cb3aa]72</listitem>
73</varlistentry>
[673b0d8]74
[1fe35e1]75<varlistentry xml:id="code">
[b8a819f]76<term><command>code</command></term>
[c6cb3aa]77<listitem>
[673b0d8]78<indexterm zone="ch-system-findutils code"><primary sortas="b-code">code</primary></indexterm>
[bb55064]79<para>was formerly used to produce <command>locate</command>
80databases. It is the ancestor of <command>frcode</command>.</para>
[c6cb3aa]81</listitem>
82</varlistentry>
[6370fa6]83
[1fe35e1]84<varlistentry xml:id="find">
[b8a819f]85<term><command>find</command></term>
[c6cb3aa]86<listitem>
[673b0d8]87<indexterm zone="ch-system-findutils find"><primary sortas="b-find">find</primary></indexterm>
[c6cb3aa]88<para>searches given directory trees for files matching the specified criteria.</para>
89</listitem>
90</varlistentry>
[673b0d8]91
[1fe35e1]92<varlistentry xml:id="frcode">
[b8a819f]93<term><command>frcode</command></term>
[c6cb3aa]94<listitem>
[673b0d8]95<indexterm zone="ch-system-findutils frcode"><primary sortas="b-frcode">frcode</primary></indexterm>
[bb55064]96<para>is called by <command>updatedb</command> to compress the list of file names. It uses
[c6cb3aa]97front-compression, reducing the database size by a factor of 4 to 5.</para>
98</listitem>
99</varlistentry>
100
[1fe35e1]101<varlistentry xml:id="locate">
[b8a819f]102<term><command>locate</command></term>
[c6cb3aa]103<listitem>
[673b0d8]104<indexterm zone="ch-system-findutils locate"><primary sortas="b-locate">locate</primary></indexterm>
[c6cb3aa]105<para>searches through a database of file names,
[673b0d8]106and reports the names that contain a given string or match a given pattern.</para>
[c6cb3aa]107</listitem>
108</varlistentry>
[673b0d8]109
[1fe35e1]110<varlistentry xml:id="updatedb">
[b8a819f]111<term><command>updatedb</command></term>
[c6cb3aa]112<listitem>
[673b0d8]113<indexterm zone="ch-system-findutils updatedb"><primary sortas="b-updatedb">updatedb</primary></indexterm>
[bb55064]114<para>updates the <command>locate</command> database. It scans
[673b0d8]115the entire file system (including other file systems that are currently mounted,
116unless told not to) and puts every file name it finds in the database.</para>
[c6cb3aa]117</listitem>
118</varlistentry>
[673b0d8]119
[1fe35e1]120<varlistentry xml:id="xargs">
[b8a819f]121<term><command>xargs</command></term>
[c6cb3aa]122<listitem>
[673b0d8]123<indexterm zone="ch-system-findutils xargs"><primary sortas="b-xargs">xargs</primary></indexterm>
[c6cb3aa]124<para>can be used to apply a given command to a list of files.</para>
125</listitem>
126</varlistentry>
127</variablelist>
[673b0d8]128
[1fe35e1]129</section>
[673b0d8]130
[1fe35e1]131</section>
Note: See TracBrowser for help on using the repository browser.