HP-UX Reference (11i v2 03/08) - 1 User Commands A-M (vol 1)
f
find(1) find(1)
-perm [-]mode In this primary, the argument mode is used to represent file mode bits. The
argument is identical in format to the mode operand as described in chmod(1),
with the exception that the first character must not be the
- operator. When
using the symbolic form of mode, the starting template is assumed to have all
file mode bits cleared.
If the leading minus is omitted, this primary is true when the file permission
bits exactly match the value of mode. Bits associated with the symbolic attri-
butes
s (set-user-ID, set-group-ID) and
t (sticky bit) are ignored when the
minus is omitted.
If mode is preceded by a minus, this primary is true if all of the bits that are
set in mode are also set in the file permission bits. In this case, the bits associ-
ated with the symbolic attributes
s and t
are significant.
-fstype FStype True if the file system to which the file belongs is of type FStype, where FStype
is one of
cdfs, hfs,
nfs,orvxfs corresponding to the CDFS, HFS, NFS, or
JFS (VXFS) file system type, respectively.
-type c True if the type of the file is c, where c is one of:
f Regular file
d Directory
b Block special file
c Character special file
p FIFO (named pipe)
l Symbolic link
s Socket
n Network special file
M Mount point
-links n True if the file has n links.
-user uname True if the file belongs to the user uname.Ifuname is numeric and does not
appear as a login name in the
/etc/passwd file, it is taken as a user ID.
The uname operand can be preceded by a + or - to modify the comparison of
the primaries. If the argument n represents a decimal integer; +n means more
than n, -n means less than n, and n means exactly n.
-group gname True if the file belongs to the group gname.Ifgname is numeric and does not
appear in the
/etc/group file, it is taken as a group ID. The gname
operand can be preceded by a + or - to modify the comparison of the pri-
maries. If the argument n represents a decimal integer; +n means more than
n, -n means less than n, and n means exactly n.
-nouser True if the file belongs to a user ID that is not listed in the password database.
See passwd(4).
-nogroup True if the file belongs to a group ID that is not listed in the group database.
See group(4).
-size n[c] True if the file is n blocks long (512 bytes per block). If n is followed by a c,
the size is in bytes.
-atime n True if the file access time subtracted from the initialized time is n-1 to n mul-
tiples of 24 h. The initialization time shall be a time between the invocation of
the find utility and the first access by that invocation of the find utility to
any file specified by its path operands. The access time of directories in
pathname_list is changed by find itself.
-mtime n True if the file modification time subtracted from the initialization time is n-1
to n multiples of 24 h. The initialization time shall be a time between the invo-
cation of the find utility and the first access by that invocation of the find
utility to any file specified in its path operands.
-ctime n True if the time of last change of file status information subtracted from the
initialization time is n-1 to n multiples of 24 h. The initialization time shall be
a time between the invocation of the find utility and the first access by that
invocation of the find utility to any file specified by its path operands.
Section 1−−282 Hewlett-Packard Company − 2 − HP-UX 11i Version 2: August 2003