
®nd(1) | ®nd(1) |
NAME
®nd - ®nd ®les
SYNOPSIS
find pathname_list [expression]
DESCRIPTION
The find command recursively descends the directory hierarchy for each path name in pathname_list (that is, one or more path names) seeking ®les that match a Boolean expression written in the primaries given below. By default, find does not follow symbolic links.
The Boolean expression is evaluated using
In the descriptions of the primaries, the argument n represents a decimal integer; +n means more than n,
The following primaries are recognized:
A | |||
| be done so that all entries in a directory are acted on before the directory itself. | ||
| This can be useful when find is used with cpio(1) to transfer ®les that are con- | ||
| tained in directories without write permission. It is also useful when using | ||
| cpio(1) and the modi®cation dates of directories must be preserved. Always true. | ||
A | |||
| following symbolic links, find keeps track of the directories visited so that it | ||
| can detect in®nite loops; for example, such a loop would occur if a symbolic link | ||
| pointed to an ancestor. This expression should not be used with the | ||
| expression. Always true. |
| |
A | |||
| tory whose ®le system is not of the type speci®ed by FStype, where FStype is one | ||
| of cdfs, hfs, vxfs, or nfs, representing the CDFS, HFS, JFS (VXFS) or | ||
| NFS ®le system type, respectively. | ||
| In this context, mount points inherit the FStype of their parent directory. This | ||
| means that when | hfs has been speci®ed and find encounters an | |
| NFS mount point that is mounted on an HFS ®le system, the mount point will be | ||
| visited but entries below that mount point will not. It is important to note that | ||
| when | nfs has been speci®ed, any HFS ®le systems that are beneath | |
| the mount point of an NFS ®le system are not traversed. Always true. | ||
True if the ®le physically resides on the local system. This does not restrict the | |||
| search to only ®les which physically reside on the local system, it merely | ||
| matches such ®les. See EXAMPLES. | ||
A | |||
| mount points that exist below starting points enumerated in pathname_list. The | ||
| mount point itself is visited, but entries below the mount point are not. Always | ||
| true. |
|
|
Identical to | |||
| |||
True if ®le matches the last component of the current ®le name. The matching is | |||
| performed according to Pattern Matching Notation (see regexp(5)). Pattern may | ||
| contain supplementary code set characters. | ||
Same as | |||
| instead of just the base name. Note that / characters are not treated as a spe- | ||
| cial case. For example, */.profile matches ./home/fred/.profile. | ||
In this primary, the argument mode is used to represent ®le mode bits. The | |||
| argument is identical in format to the mode operand as described in chmod(1), | ||
| with the exception that the ®rst character must not be the - operator. When | ||
| using the symbolic form of mode, the starting template is assumed to have all | ||
| ®le mode bits cleared. |
| |
− 1 − | Section 1−271 | ||
f