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