source: chapter06/findutils.xml@ 1dc34de7

6.0
Last change on this file since 1dc34de7 was ef13657, checked in by Gerard Beekmans <gerard@…>, 20 years ago

Completed global edits for upcoming 6.0 release

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

  • Property mode set to 100644
File size: 4.4 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
[a001133]6<sect1 id="ch-system-findutils" xreflabel="Findutils" role="wrap">
[673b0d8]7<title>Findutils-&findutils-version;</title>
8<?dbhtml filename="findutils.html"?>
[6370fa6]9
[673b0d8]10<indexterm zone="ch-system-findutils"><primary sortas="a-Findutils">Findutils</primary></indexterm>
[5888299]11
[a001133]12<sect2 role="package"><title/>
[673b0d8]13<para>The Findutils package contains programs to find files. Processes
14are provided to recursively search through a directory tree and to
15create, maintain and search a database (often faster than the recursive
16find, but unreliable if the database has not been recently updated).</para>
17
[a001133]18<segmentedlist>
19<segtitle>&buildtime;</segtitle>
20<segtitle>&diskspace;</segtitle>
21<seglistitem><seg>0.2 SBU</seg><seg>7.5 MB</seg></seglistitem>
22</segmentedlist>
[673b0d8]23
[a001133]24<segmentedlist>
25<segtitle>Findutils installation depends on</segtitle>
26<seglistitem><seg>Bash, Binutils, Coreutils,
27Diffutils, GCC, Gettext, Glibc, Grep, Make, Sed</seg></seglistitem>
28</segmentedlist>
29</sect2>
[3554fa3a]30
[a001133]31<sect2 role="installation">
[f4993cf]32<title>Installation of Findutils</title>
[73aedd1d]33
34<para>Prepare Findutils for compilation:</para>
35
[2a264e0b]36<screen><userinput>./configure --prefix=/usr --libexecdir=/usr/lib/locate \
[9dfc02f]37 --localstatedir=/var/lib/locate</userinput></screen>
[73aedd1d]38
[2a264e0b]39<para>The localstatedir directive above changes the location of the locate
[bb55064]40database to be in <filename class="directory">/var/lib/locate</filename>,
41which is FHS-compliant.</para>
[73aedd1d]42
43<para>Compile the package:</para>
44
45<screen><userinput>make</userinput></screen>
46
[673b0d8]47<para>To test the results, issue:
[8a5f906]48<userinput>make check</userinput>.</para>
[73aedd1d]49
[ef13657]50<para>Install the package:</para>
[73aedd1d]51
52<screen><userinput>make install</userinput></screen>
53
54</sect2>
[6370fa6]55
[5888299]56
[c6cb3aa]57<sect2 id="contents-findutils" role="content"><title>Contents of Findutils</title>
[673b0d8]58
[c6cb3aa]59<segmentedlist>
60<segtitle>Installed programs</segtitle>
61<seglistitem><seg>bigram, code, find, frcode, locate, updatedb and xargs</seg></seglistitem>
62</segmentedlist>
[673b0d8]63
[c6cb3aa]64<variablelist><title>Short descriptions</title>
[673b0d8]65
[b8a819f]66<varlistentry id="bigram">
67<term><command>bigram</command></term>
[c6cb3aa]68<listitem>
[673b0d8]69<indexterm zone="ch-system-findutils bigram"><primary sortas="b-bigram">bigram</primary></indexterm>
[bb55064]70<para>was formerly used to produce <command>locate</command> databases.</para>
[c6cb3aa]71</listitem>
72</varlistentry>
[673b0d8]73
[b8a819f]74<varlistentry id="code">
75<term><command>code</command></term>
[c6cb3aa]76<listitem>
[673b0d8]77<indexterm zone="ch-system-findutils code"><primary sortas="b-code">code</primary></indexterm>
[bb55064]78<para>was formerly used to produce <command>locate</command>
79databases. It is the ancestor of <command>frcode</command>.</para>
[c6cb3aa]80</listitem>
81</varlistentry>
[6370fa6]82
[b8a819f]83<varlistentry id="find">
84<term><command>find</command></term>
[c6cb3aa]85<listitem>
[673b0d8]86<indexterm zone="ch-system-findutils find"><primary sortas="b-find">find</primary></indexterm>
[c6cb3aa]87<para>searches given directory trees for files matching the specified criteria.</para>
88</listitem>
89</varlistentry>
[673b0d8]90
[b8a819f]91<varlistentry id="frcode">
92<term><command>frcode</command></term>
[c6cb3aa]93<listitem>
[673b0d8]94<indexterm zone="ch-system-findutils frcode"><primary sortas="b-frcode">frcode</primary></indexterm>
[bb55064]95<para>is called by <command>updatedb</command> to compress the list of file names. It uses
[ef13657]96front-compression, reducing the database size by a factor of four to
97five.</para>
[c6cb3aa]98</listitem>
99</varlistentry>
100
[b8a819f]101<varlistentry id="locate">
102<term><command>locate</command></term>
[c6cb3aa]103<listitem>
[673b0d8]104<indexterm zone="ch-system-findutils locate"><primary sortas="b-locate">locate</primary></indexterm>
[ef13657]105<para>searches through a database of file names and reports the names
106that contain a given string or match a given pattern.</para>
[c6cb3aa]107</listitem>
108</varlistentry>
[673b0d8]109
[b8a819f]110<varlistentry id="updatedb">
111<term><command>updatedb</command></term>
[c6cb3aa]112<listitem>
[673b0d8]113<indexterm zone="ch-system-findutils updatedb"><primary sortas="b-updatedb">updatedb</primary></indexterm>
[bb55064]114<para>updates the <command>locate</command> database. It scans
[673b0d8]115the entire file system (including other file systems that are currently mounted,
[ef13657]116unless told not to) and puts every file name it finds to the database.</para>
[c6cb3aa]117</listitem>
118</varlistentry>
[673b0d8]119
[b8a819f]120<varlistentry id="xargs">
121<term><command>xargs</command></term>
[c6cb3aa]122<listitem>
[673b0d8]123<indexterm zone="ch-system-findutils xargs"><primary sortas="b-xargs">xargs</primary></indexterm>
[c6cb3aa]124<para>can be used to apply a given command to a list of files.</para>
125</listitem>
126</varlistentry>
127</variablelist>
[673b0d8]128
129</sect2>
130
131</sect1>
[ef13657]132
Note: See TracBrowser for help on using the repository browser.