[3f8be484] | 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 | |
---|
[1cd688b] | 17 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" |
---|
| 18 | href="../common/findutils.xml" |
---|
| 19 | xpointer="xpointer(//*[@role='package'])"/> |
---|
[3f8be484] | 20 | |
---|
| 21 | <sect2 role="installation"> |
---|
| 22 | <title>Installation of Findutils</title> |
---|
| 23 | |
---|
| 24 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" |
---|
| 25 | href="../common/findutils.xml" |
---|
| 26 | xpointer="xpointer(//*[@os='a'])"/> |
---|
| 27 | |
---|
| 28 | <screen><userinput>CC="gcc ${BUILD64}" ./configure --prefix=/usr \ |
---|
| 29 | --libexecdir=/usr/lib64/locate --localstatedir=/var/lib64/locate</userinput></screen> |
---|
| 30 | |
---|
| 31 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" |
---|
| 32 | href="../common/findutils.xml" |
---|
| 33 | xpointer="xpointer(//*[@os='b'])"/> |
---|
| 34 | |
---|
| 35 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" |
---|
| 36 | href="../common/findutils.xml" |
---|
| 37 | xpointer="xpointer(//*[@os='c'])"/> |
---|
| 38 | |
---|
| 39 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" |
---|
| 40 | href="../common/findutils.xml" |
---|
| 41 | xpointer="xpointer(//*[@os='d'])"/> |
---|
| 42 | |
---|
| 43 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" |
---|
| 44 | href="../common/findutils.xml" |
---|
| 45 | xpointer="xpointer(//*[@os='e'])"/> |
---|
| 46 | |
---|
| 47 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" |
---|
| 48 | href="../common/findutils.xml" |
---|
| 49 | xpointer="xpointer(//*[@os='f'])"/> |
---|
| 50 | |
---|
| 51 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" |
---|
| 52 | href="../common/findutils.xml" |
---|
| 53 | xpointer="xpointer(//*[@os='g'])"/> |
---|
| 54 | |
---|
| 55 | </sect2> |
---|
| 56 | |
---|
| 57 | <sect2 id="contents-findutils" role="content"> |
---|
| 58 | <title>Contents of Findutils</title> |
---|
| 59 | |
---|
| 60 | <segmentedlist> |
---|
| 61 | <segtitle>Installed programs</segtitle> |
---|
| 62 | |
---|
| 63 | <seglistitem> |
---|
| 64 | <seg>bigram, code, find, frcode, locate, updatedb, and xargs</seg> |
---|
| 65 | </seglistitem> |
---|
| 66 | </segmentedlist> |
---|
| 67 | |
---|
| 68 | <variablelist> |
---|
| 69 | <bridgehead renderas="sect3">Short Descriptions</bridgehead> |
---|
| 70 | <?dbfo list-presentation="list"?> |
---|
| 71 | <?dbhtml list-presentation="table"?> |
---|
| 72 | |
---|
| 73 | <varlistentry id="bigram"> |
---|
| 74 | <term><command>bigram</command></term> |
---|
| 75 | <listitem> |
---|
| 76 | <para>Was formerly used to produce <command>locate</command> |
---|
| 77 | databases</para> |
---|
| 78 | <indexterm zone="ch-system-findutils bigram"> |
---|
| 79 | <primary sortas="b-bigram">bigram</primary> |
---|
| 80 | </indexterm> |
---|
| 81 | </listitem> |
---|
| 82 | </varlistentry> |
---|
| 83 | |
---|
| 84 | <varlistentry id="code"> |
---|
| 85 | <term><command>code</command></term> |
---|
| 86 | <listitem> |
---|
| 87 | <para>Was formerly used to produce <command>locate</command> |
---|
| 88 | databases; it is the ancestor of <command>frcode</command>.</para> |
---|
| 89 | <indexterm zone="ch-system-findutils code"> |
---|
| 90 | <primary sortas="b-code">code</primary> |
---|
| 91 | </indexterm> |
---|
| 92 | </listitem> |
---|
| 93 | </varlistentry> |
---|
| 94 | |
---|
| 95 | <varlistentry id="find"> |
---|
| 96 | <term><command>find</command></term> |
---|
| 97 | <listitem> |
---|
| 98 | <para>Searches given directory trees for files matching the specified |
---|
| 99 | criteria</para> |
---|
| 100 | <indexterm zone="ch-system-findutils find"> |
---|
| 101 | <primary sortas="b-find">find</primary> |
---|
| 102 | </indexterm> |
---|
| 103 | </listitem> |
---|
| 104 | </varlistentry> |
---|
| 105 | |
---|
| 106 | <varlistentry id="frcode"> |
---|
| 107 | <term><command>frcode</command></term> |
---|
| 108 | <listitem> |
---|
| 109 | <para>Is called by <command>updatedb</command> to compress the list |
---|
| 110 | of file names; it uses front-compression, reducing the database size |
---|
| 111 | by a factor of four to five.</para> |
---|
| 112 | <indexterm zone="ch-system-findutils frcode"> |
---|
| 113 | <primary sortas="b-frcode">frcode</primary> |
---|
| 114 | </indexterm> |
---|
| 115 | </listitem> |
---|
| 116 | </varlistentry> |
---|
| 117 | |
---|
| 118 | <varlistentry id="locate"> |
---|
| 119 | <term><command>locate</command></term> |
---|
| 120 | <listitem> |
---|
| 121 | <para>Searches through a database of file names and reports the names |
---|
| 122 | that contain a given string or match a given pattern</para> |
---|
| 123 | <indexterm zone="ch-system-findutils locate"> |
---|
| 124 | <primary sortas="b-locate">locate</primary> |
---|
| 125 | </indexterm> |
---|
| 126 | </listitem> |
---|
| 127 | </varlistentry> |
---|
| 128 | |
---|
| 129 | <varlistentry id="updatedb"> |
---|
| 130 | <term><command>updatedb</command></term> |
---|
| 131 | <listitem> |
---|
| 132 | <para>Updates the <command>locate</command> database; it scans the |
---|
| 133 | entire file system (including other file systems that are currently |
---|
| 134 | mounted, unless told not to) and puts every file name it finds into |
---|
| 135 | the database</para> |
---|
| 136 | <indexterm zone="ch-system-findutils updatedb"> |
---|
| 137 | <primary sortas="b-updatedb">updatedb</primary> |
---|
| 138 | </indexterm> |
---|
| 139 | </listitem> |
---|
| 140 | </varlistentry> |
---|
| 141 | |
---|
| 142 | <varlistentry id="xargs"> |
---|
| 143 | <term><command>xargs</command></term> |
---|
| 144 | <listitem> |
---|
| 145 | <para>Can be used to apply a given command to a list of files</para> |
---|
| 146 | <indexterm zone="ch-system-findutils xargs"> |
---|
| 147 | <primary sortas="b-xargs">xargs</primary> |
---|
| 148 | </indexterm> |
---|
| 149 | </listitem> |
---|
| 150 | </varlistentry> |
---|
| 151 | |
---|
| 152 | </variablelist> |
---|
| 153 | |
---|
| 154 | </sect2> |
---|
| 155 | |
---|
| 156 | </sect1> |
---|