source: chapter06/findutils.xml@ 967d78e

7.6-systemd 7.7-systemd 7.8-systemd 7.9-systemd
Last change on this file since 967d78e was 9c85c93, checked in by Krejzi <krejzi@…>, 10 years ago

this is now in libexec

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

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