2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Contents</title>
|
|
|
|
|
2001-09-22 17:09:47 +01:00
|
|
|
<para>The Findutils package contains the bigram, code, find, frcode, locate,
|
|
|
|
updatedb and xargs programs.</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2><title>Description</title>
|
|
|
|
|
2001-09-22 17:09:47 +01:00
|
|
|
<sect3><title>bigram</title>
|
|
|
|
<para>bigram is used together with code to produce older-style locate
|
|
|
|
databases. To learn more about these last three programs, read the locatedb.5
|
|
|
|
manual page.</para></sect3>
|
|
|
|
|
|
|
|
<sect3><title>code</title>
|
|
|
|
<para>code is the ancestor of frcode. It was used in older-style locate
|
|
|
|
databases.</para></sect3>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-09-22 17:09:47 +01:00
|
|
|
<sect3><title>find</title>
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>The find program searches for files in a directory hierarchy which match
|
2001-01-24 00:31:17 +00:00
|
|
|
a certain criteria. If no criteria is given, it lists all files in the
|
2001-09-22 17:09:47 +01:00
|
|
|
current directory and it's subdirectories.</para></sect3>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-09-22 17:09:47 +01:00
|
|
|
<sect3><title>frcode</title>
|
|
|
|
<para>updatedb runs a program called frcode to compress the list of file names
|
|
|
|
using front-compression, which reduces the database size by a factor of
|
|
|
|
4 to 5.</para></sect3>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-09-22 17:09:47 +01:00
|
|
|
<sect3><title>locate</title>
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>Locate scans a database which contain all files and directories on a
|
2001-01-24 00:31:17 +00:00
|
|
|
filesystem. This program lists the files and directories in this
|
2001-03-14 19:26:45 +00:00
|
|
|
database matching a certain criteria. If a user is looking for a file this
|
|
|
|
program will scan the database and tell him exactly where the files he
|
|
|
|
requested are located. This only makes sense if the locate database is
|
2001-09-22 17:09:47 +01:00
|
|
|
fairly up-to-date else it will provide out-of-date information.</para></sect3>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-09-22 17:09:47 +01:00
|
|
|
<sect3><title>updatedb</title>
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>The updatedb program updates the locate database. It scans the entire
|
2001-01-24 00:31:17 +00:00
|
|
|
file system (including other file system that are currently mounted
|
2001-03-14 19:26:45 +00:00
|
|
|
unless it is told not to do so) and puts every directory and file it finds
|
2001-01-24 00:31:17 +00:00
|
|
|
into the database that's used by the locate program which retrieves this
|
2001-03-14 19:26:45 +00:00
|
|
|
information. It's a good practice to update this database once a day to
|
2001-09-22 17:09:47 +01:00
|
|
|
have it up-to-date whenever it is needed.</para></sect3>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-09-22 17:09:47 +01:00
|
|
|
<sect3><title>xargs</title>
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>The xargs command applies a command to a list of files. If there is
|
|
|
|
a need to perform the same command on multiple files, a file can be created
|
|
|
|
that contains all these files (one per line) and use xargs to perform that
|
2001-09-22 17:09:47 +01:00
|
|
|
command on the list.</para></sect3>
|
2001-05-08 21:08:17 +01:00
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
</sect2>
|
|
|
|
|