source: chapter06/findutils.xml@ acfd414

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.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
Last change on this file since acfd414 was acfd414, checked in by Archaic <archaic@…>, 19 years ago

Slight wording change on findutils description. Thanks Randy.

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

  • Property mode set to 100644
File size: 4.6 KB
Line 
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 <!ENTITY % patches-entities SYSTEM "../patches.ent">
5 %general-entities;
6 %patches-entities;
7]>
8<sect1 id="ch-system-findutils" role="wrap">
9<title>Findutils-&findutils-version;</title>
10<?dbhtml filename="findutils.html"?>
11
12<indexterm zone="ch-system-findutils"><primary sortas="a-Findutils">Findutils</primary></indexterm>
13
14<sect2 role="package"><title/>
15<para>The Findutils package contains programs to find files. These programs
16are provided to recursively search through a directory tree and to
17create, maintain, and search a database (often faster than the recursive
18find, but unreliable if the database has not been recently updated).</para>
19
20<segmentedlist>
21<segtitle>&buildtime;</segtitle>
22<segtitle>&diskspace;</segtitle>
23<seglistitem><seg>0.1 SBU</seg><seg>8.4 MB</seg></seglistitem>
24</segmentedlist>
25
26<segmentedlist>
27<segtitle>&dependencies;</segtitle>
28<seglistitem><seg>Bash, Binutils, Coreutils,
29Diffutils, GCC, Gettext, Glibc, Grep, Make and Sed</seg></seglistitem>
30</segmentedlist>
31</sect2>
32
33<sect2 role="installation">
34<title>Installation of Findutils</title>
35
36<para>Prepare Findutils for compilation:</para>
37
38<screen><userinput>./configure --prefix=/usr --libexecdir=/usr/lib/locate \
39 --localstatedir=/var/lib/locate</userinput></screen>
40
41<para>The <parameter>localstatedir</parameter> directive above changes the
42location of the <command>locate</command> database to be in <filename
43class="directory">/var/lib/locate</filename>, which is FHS-compliant.</para>
44
45<para>Compile the package:</para>
46
47<screen><userinput>make</userinput></screen>
48
49<para>To test the results, issue:
50<userinput>make check</userinput>.</para>
51
52<para>Install the package:</para>
53
54<screen><userinput>make install</userinput></screen>
55
56</sect2>
57
58<sect2 id="contents-findutils" role="content"><title>Contents of Findutils</title>
59
60<segmentedlist>
61<segtitle>Installed programs</segtitle>
62<seglistitem><seg>bigram, code, find, frcode, locate, updatedb, and xargs</seg></seglistitem>
63</segmentedlist>
64
65<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
66<?dbfo list-presentation="list"?>
67<?dbhtml list-presentation="table"?>
68
69<varlistentry id="bigram">
70<term><command>bigram</command></term>
71<listitem>
72<para>Was formerly used to produce <command>locate</command> databases</para>
73<indexterm zone="ch-system-findutils bigram"><primary sortas="b-bigram">bigram</primary></indexterm>
74</listitem>
75</varlistentry>
76
77<varlistentry id="code">
78<term><command>code</command></term>
79<listitem>
80<para>Was formerly used to produce <command>locate</command>
81databases; it is the ancestor of <command>frcode</command>.</para>
82<indexterm zone="ch-system-findutils code"><primary sortas="b-code">code</primary></indexterm>
83</listitem>
84</varlistentry>
85
86<varlistentry id="find">
87<term><command>find</command></term>
88<listitem>
89<para>Searches given directory trees for files matching the specified criteria</para>
90<indexterm zone="ch-system-findutils find"><primary sortas="b-find">find</primary></indexterm>
91</listitem>
92</varlistentry>
93
94<varlistentry id="frcode">
95<term><command>frcode</command></term>
96<listitem>
97<para>Is called by <command>updatedb</command> to compress the list of file names; it uses
98front-compression, reducing the database size by a factor of four to
99five.</para>
100<indexterm zone="ch-system-findutils frcode"><primary sortas="b-frcode">frcode</primary></indexterm>
101</listitem>
102</varlistentry>
103
104<varlistentry id="locate">
105<term><command>locate</command></term>
106<listitem>
107<para>Searches through a database of file names and reports the names
108that contain a given string or match a given pattern</para>
109<indexterm zone="ch-system-findutils locate"><primary sortas="b-locate">locate</primary></indexterm>
110</listitem>
111</varlistentry>
112
113<varlistentry id="updatedb">
114<term><command>updatedb</command></term>
115<listitem>
116<para>Updates the <command>locate</command> database; it scans
117the entire file system (including other file systems that are currently mounted,
118unless told not to) and puts every file name it finds into the database</para>
119<indexterm zone="ch-system-findutils updatedb"><primary sortas="b-updatedb">updatedb</primary></indexterm>
120</listitem>
121</varlistentry>
122
123<varlistentry id="xargs">
124<term><command>xargs</command></term>
125<listitem>
126<para>Can be used to apply a given command to a list of files</para>
127<indexterm zone="ch-system-findutils xargs"><primary sortas="b-xargs">xargs</primary></indexterm>
128</listitem>
129</varlistentry>
130</variablelist>
131
132</sect2>
133
134</sect1>
135
Note: See TracBrowser for help on using the repository browser.