source: chapter06/findutils.xml@ bbadc6d

7.5-systemd 7.6-systemd 7.7-systemd 7.8-systemd 7.9-systemd
Last change on this file since bbadc6d was 3e2ac00, checked in by Krejzi <krejzi@…>, 10 years ago

Final sync from lfs svn.

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

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