[bdc08c1] | 1 | <sect2><title>Contents of findutils-&findutils-contversion;</title>
|
---|
[6370fa6] | 2 |
|
---|
[bdc08c1] | 3 | <sect3><title>Program Files</title>
|
---|
| 4 | <para>bigram, code, find, frcode, locate, updatedb and
|
---|
| 5 | xargs</para></sect3>
|
---|
[6370fa6] | 6 |
|
---|
[bdc08c1] | 7 | <sect3><title>Descriptions</title>
|
---|
[6370fa6] | 8 |
|
---|
[bdc08c1] | 9 | <sect4><title>bigram</title>
|
---|
[53ad30a] | 10 | <para>bigram is used together with code to produce older-style locate
|
---|
| 11 | databases. To learn more about these last three programs, read the locatedb.5
|
---|
[bdc08c1] | 12 | manual page.</para></sect4>
|
---|
[53ad30a] | 13 |
|
---|
[bdc08c1] | 14 | <sect4><title>code</title>
|
---|
[53ad30a] | 15 | <para>code is the ancestor of frcode. It was used in older-style locate
|
---|
[bdc08c1] | 16 | databases.</para></sect4>
|
---|
[6370fa6] | 17 |
|
---|
[bdc08c1] | 18 | <sect4><title>find</title>
|
---|
[b822811] | 19 | <para>The find program searches for files in a directory hierarchy which match
|
---|
[6370fa6] | 20 | a certain criteria. If no criteria is given, it lists all files in the
|
---|
[bdc08c1] | 21 | current directory and its subdirectories.</para></sect4>
|
---|
[6370fa6] | 22 |
|
---|
[bdc08c1] | 23 | <sect4><title>frcode</title>
|
---|
[53ad30a] | 24 | <para>updatedb runs a program called frcode to compress the list of file names
|
---|
| 25 | using front-compression, which reduces the database size by a factor of
|
---|
[bdc08c1] | 26 | 4 to 5.</para></sect4>
|
---|
[6370fa6] | 27 |
|
---|
[bdc08c1] | 28 | <sect4><title>locate</title>
|
---|
[b822811] | 29 | <para>Locate scans a database which contain all files and directories on a
|
---|
[6370fa6] | 30 | filesystem. This program lists the files and directories in this
|
---|
[3cc70a0] | 31 | database matching a certain criteria. If a user is looking for a file this
|
---|
| 32 | program will scan the database and tell him exactly where the files he
|
---|
| 33 | requested are located. This only makes sense if the locate database is
|
---|
[bdc08c1] | 34 | fairly up-to-date else it will provide out-of-date information.</para></sect4>
|
---|
[6370fa6] | 35 |
|
---|
[bdc08c1] | 36 | <sect4><title>updatedb</title>
|
---|
[b822811] | 37 | <para>The updatedb program updates the locate database. It scans the entire
|
---|
[6370fa6] | 38 | file system (including other file system that are currently mounted
|
---|
[3cc70a0] | 39 | unless it is told not to do so) and puts every directory and file it finds
|
---|
[6370fa6] | 40 | into the database that's used by the locate program which retrieves this
|
---|
[51c0c603] | 41 | information. It's good practice to update this database once a day to
|
---|
[bdc08c1] | 42 | have it up-to-date whenever it is needed.</para></sect4>
|
---|
[6370fa6] | 43 |
|
---|
[bdc08c1] | 44 | <sect4><title>xargs</title>
|
---|
[b822811] | 45 | <para>The xargs command applies a command to a list of files. If there is
|
---|
| 46 | a need to perform the same command on multiple files, a file can be created
|
---|
| 47 | that contains all these files (one per line) and use xargs to perform that
|
---|
[bdc08c1] | 48 | command on the list.</para></sect4>
|
---|
| 49 |
|
---|
| 50 | </sect3>
|
---|
[eb9c756] | 51 |
|
---|
[6370fa6] | 52 | </sect2>
|
---|
| 53 |
|
---|