source: chapter06/findutils.xml@ e4a5635

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 e4a5635 was e4a5635, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Replaced "<" by "less than".

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

  • Property mode set to 100644
File size: 5.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-findutils" role="wrap">
9 <?dbhtml filename="findutils.html"?>
10
11 <title>Findutils-&findutils-version;</title>
12
13 <indexterm zone="ch-system-findutils">
14 <primary sortas="a-Findutils">Findutils</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Findutils package contains programs to find files. These programs
21 are provided to recursively search through a directory tree and to
22 create, maintain, and search a database (often faster than the recursive
23 find, but unreliable if the database has not been recently updated).</para>
24
25 <segmentedlist>
26 <segtitle>&buildtime;</segtitle>
27 <segtitle>&diskspace;</segtitle>
28
29 <seglistitem>
30 <seg>&findutils-ch6-sbu;</seg>
31 <seg>&findutils-ch6-du;</seg>
32 </seglistitem>
33 </segmentedlist>
34
35 </sect2>
36
37 <sect2 role="installation">
38 <title>Installation of Findutils</title>
39
40 <para>Prepare Findutils for compilation:</para>
41
42<screen><userinput>./configure --prefix=/usr --libexecdir=/usr/lib/findutils \
43 --localstatedir=/var/lib/locate</userinput></screen>
44
45 <variablelist>
46 <title>The meaning of the configure options:</title>
47
48 <varlistentry>
49 <term><parameter>--localstatedir</parameter></term>
50 <listitem>
51 <para>This option changes the location of the <command>locate</command>
52 database to be in <filename class="directory">/var/lib/locate</filename>,
53 which is FHS-compliant.</para>
54 </listitem>
55 </varlistentry>
56
57 </variablelist>
58
59 <para>Compile the package:</para>
60
61<screen><userinput>make</userinput></screen>
62
63 <para>To test the results, issue:
64 <userinput>make check</userinput>.</para>
65
66 <para>Install the package:</para>
67
68<screen><userinput>make install</userinput></screen>
69
70 </sect2>
71
72 <sect2 id="contents-findutils" role="content">
73 <title>Contents of Findutils</title>
74
75 <segmentedlist>
76 <segtitle>Installed programs</segtitle>
77
78 <seglistitem>
79 <seg>bigram, code, find, frcode, locate, updatedb, and xargs</seg>
80 </seglistitem>
81 </segmentedlist>
82
83 <variablelist>
84 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
85 <?dbfo list-presentation="list"?>
86 <?dbhtml list-presentation="table"?>
87
88 <varlistentry id="bigram">
89 <term><command>bigram</command></term>
90 <listitem>
91 <para>Was formerly used to produce <command>locate</command>
92 databases</para>
93 <indexterm zone="ch-system-findutils bigram">
94 <primary sortas="b-bigram">bigram</primary>
95 </indexterm>
96 </listitem>
97 </varlistentry>
98
99 <varlistentry id="code">
100 <term><command>code</command></term>
101 <listitem>
102 <para>Was formerly used to produce <command>locate</command>
103 databases; it is the ancestor of <command>frcode</command>.</para>
104 <indexterm zone="ch-system-findutils code">
105 <primary sortas="b-code">code</primary>
106 </indexterm>
107 </listitem>
108 </varlistentry>
109
110 <varlistentry id="find">
111 <term><command>find</command></term>
112 <listitem>
113 <para>Searches given directory trees for files matching the specified
114 criteria</para>
115 <indexterm zone="ch-system-findutils find">
116 <primary sortas="b-find">find</primary>
117 </indexterm>
118 </listitem>
119 </varlistentry>
120
121 <varlistentry id="frcode">
122 <term><command>frcode</command></term>
123 <listitem>
124 <para>Is called by <command>updatedb</command> to compress the list
125 of file names; it uses front-compression, reducing the database size
126 by a factor of four to five.</para>
127 <indexterm zone="ch-system-findutils frcode">
128 <primary sortas="b-frcode">frcode</primary>
129 </indexterm>
130 </listitem>
131 </varlistentry>
132
133 <varlistentry id="locate">
134 <term><command>locate</command></term>
135 <listitem>
136 <para>Searches through a database of file names and reports the names
137 that contain a given string or match a given pattern</para>
138 <indexterm zone="ch-system-findutils locate">
139 <primary sortas="b-locate">locate</primary>
140 </indexterm>
141 </listitem>
142 </varlistentry>
143
144 <varlistentry id="updatedb">
145 <term><command>updatedb</command></term>
146 <listitem>
147 <para>Updates the <command>locate</command> database; it scans the
148 entire file system (including other file systems that are currently
149 mounted, unless told not to) and puts every file name it finds into
150 the database</para>
151 <indexterm zone="ch-system-findutils updatedb">
152 <primary sortas="b-updatedb">updatedb</primary>
153 </indexterm>
154 </listitem>
155 </varlistentry>
156
157 <varlistentry id="xargs">
158 <term><command>xargs</command></term>
159 <listitem>
160 <para>Can be used to apply a given command to a list of files</para>
161 <indexterm zone="ch-system-findutils xargs">
162 <primary sortas="b-xargs">xargs</primary>
163 </indexterm>
164 </listitem>
165 </varlistentry>
166
167 </variablelist>
168
169 </sect2>
170
171</sect1>
Note: See TracBrowser for help on using the repository browser.