find.1 (2012 03)
f
find(1) find(1)
expression [-a] expression
Logical AND operator. True if both of the expression s are true.
expression
-o expression
Logical OR operator. True if either or both of the expression s are true.
! expression Logical NOT operator. True if expression is not true.
If expression is omitted, or if none of
-print, -print0, -ok, -exec, -cpio,or-ncpio is specified,
-print is assumed. The -user, -group
, and -newer primaries each evaluate their respective argu-
ments once.
HFS Access Control Lists
The
-acl primary enables the user to search for HFS access control list entries. It is true if the file’s
access control list matches an access control list pattern or contains optional access control list entries
(see acl (5)). It has three forms:
-acl aclpatt Match all files whose access control list includes all (zero or more) pattern
entries specified by the aclpatt pattern.
-acl =aclpatt Match a file only if its access control list includes all (zero or more) pattern
entries specified by the aclpatt pattern, and every entry in its access control
list is matched by at least one pattern entry specified in the aclpatt pattern.
-acl opt Match all files containing optional access control list entries.
The aclpatt string can be given as an operator or short form pattern; see acl (5).
By default,
-acl is true for files whose access control lists include all the (zero or more) access control
list patterns in aclpatt . A file’s access control list can also contain unmatched entries.
If aclpatt begins with
=, the remainder of the string must match all entries in a file’s access control list.
The aclpatt string (by default, or the part following
=) can be either an access control list or an access
control list pattern. However, if it is an access control list, aclpatt must include at least the three base
entries ((user .%,mode), (%.group,mode), and (%.%,mode)).
As a special case, if aclpatt is the word
opt, the primary is true for files with access control list entries.
JFS Access Control Lists
The
-aclv primary enables the user to search for JFS access control list entries. It is true if the file’s
access control list matches an access control list pattern or contains optional access control list entries
(see aclv (5)). It has three forms:
-aclv aclpatt Match all files whose access control list includes all (zero or more) pattern
entries specified by the aclpatt pattern.
-aclv =aclpatt Match a file only if its access control list includes all (zero or more) pattern
entries specified by the aclpatt pattern, and every entry in its access control
list is matched by at least one pattern entry specified in the aclpatt pattern.
-aclv opt Match all files containing optional access control list entries.
By default,
-aclv is true for files whose access control lists include all the (zero or more) access control
list patterns in aclpatt . A file’s access control list can also contain unmatched entries.
If aclpatt begins with
=, the remainder of the string must match all entries in a file’s access control list.
An aclpatt consists of a type field, an ID field, and a mode field, separated by colons. Multiple comma-
separated aclpatt s may be specified.
The type field is one of
user, group, class, other or *, optionally preceded by default:. user,
group, class, other and default can be abbreviated to u, g, c, o and d, respectively. A type field
of * matches any of the above types.
The ID field is either a numeric user or group ID, a user or group ID string from
/etc/passwd or
/etc/group respectively, or *, which matches any ID. The ID field can be mentioned only if the type
field matches any of u, g, user,orgroup.
The mode field consists of a string of three characters. The first character is either
r, indicating that read
permission is granted; -, indicating that read permission is denied; or ?, which matches either state of
read permission. The second character is either w, -,or?, similarly indicating the state of write permis-
sion; and the third character is either x, -,or?, indicating the state of execute permission.
HP-UX 11i Version 3: March 2012 − 5 − Hewlett-Packard Company 5