source: BOOK/final-system/common/findutils.xml@ 4ba982a3

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 4ba982a3 was 3373dd11, checked in by Jim Gifford <clfs@…>, 19 years ago

r668@server (orig r666): manuel | 2005-11-08 15:25:13 -0800
Removing SBUs and DUs. Chapter final-system, round 6.

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