find [-d | -s ] [pathname ...] expression
The find
command recursively descends the directory tree
for each pathname listed, evaluating an expression (composed of the Primaries and Operands listed
in the following sections) in terms of each file in the tree.
The find
command supports the following options:
Option |
Description |
---|---|
|
Cause |
|
Cause Notes: |
Note: For more information about using the find
command,
search http://www.freebsd.org/cgi/man.cgi by
specifying find
as the search keyword and selecting the FreeBSD
6.2-Release option from the release list.
The following primaries are supported
by the find
command:
Primary |
Description |
---|---|
|
True if the difference between the file last access time and the
time |
|
File was last accessed more recently than file was modified. |
|
If no units are specified, this primary evaluates to true if the
difference between the file last access time and the time |
|
True if the difference between the time of last change of file status
information and the time |
|
True if the current file has been changed more recently than the changed time of the file named by the pathname file. |
|
If no units are specified, this primary evaluates to true if the
difference between the time of last change of file status information and
the time |
|
Deletes the files specified as an argument to the |
|
Always true. This option is similar to the |
|
True if the current file or directory is empty. |
|
The primary evaluates as true if the invoked utility returns a zero value as exit status. |
|
This option is similar to |
|
True if the file has |
|
This primary always evaluates to true. The following information for the current file is written to standard output; inode number, size in 512-byte blocks, file permissions, number of hard link, size in bytes, last modification time, and pathname. |
|
Always true; descend at most |
|
Always true; do not apply any tests or actions at levels less than |
|
If no units are specified, this primary evaluates to true if the
difference between the file last modification time and the time |
|
True if the last component of the pathname being examined matches |
|
True if the current file has a more recent last modification time
than |
|
True if the pathname being examined matches |
|
This primary always evaluates to true. It prints the pathname of
the current file to standard output. If none of |
|
This primary always evaluates to true. It prints the pathname of the current file to standard output, followed by an ASCII NUL character (character code 0). |
|
This primary always evaluates to true. It prints the pathname of the current file to standard output in a new line. |
|
This primary always evaluates to true. It causes |
|
True if the file's size, rounded up, in 512-byte blocks is |
|
True if the file is of the specified type. Possible file types are as follows: |
All primaries which take a numeric argument allow the number to be preceded by a plus sign (+) or a minus sign (-). A preceding plus sign means more than n, a preceding minus sign means less than n and neither means exactly n.
Note: The following
primaries are not supported by the Symbian version of the find
command:
The primaries may be combined using the following operators. The operators are listed in order of decreasing precedence.
Operator |
Description |
---|---|
|
This evaluates to true if the parenthesized expression evaluates to true. |
|
This is the unary NOT operator. It evaluates to true if the expression is false. |
|
The |
|
The |
All operands and primaries must be separate arguments to find
.
Primaries which themselves take arguments expect each argument to be a separate
argument to find
.
For information about documentation
copyrights associated with the find
command, see http://www.freebsd.org/copyright/freebsd-doc-license.html.
The FreeBSD Documentation License
Copyright 1994-2006 The FreeBSD Project. All rights reserved.
Redistribution and use in source (SGML DocBook) and 'compiled' forms (SGML, HTML, PDF, PostScript, RTF and so forth) with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code (SGML DocBook) must retain the above copyright notice, this list of conditions and the following disclaimer as the first lines of this file unmodified.
Redistributions in compiled form (transformed to other DTDs, converted to PDF, PostScript, RTF and other formats) must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS DOCUMENTATION IS PROVIDED BY THE FREEBSD DOCUMENTATION PROJECT "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FREEBSD DOCUMENTATION PROJECT BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.