Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)
User Commands (d - f) find(1)
-ls Always TRUE; causes the pathname argument to be printed together with its associated
statistics. These include, respectively, inode number, size in kilobytes (1024 bytes), pro-
tection mode, number of hard links, user, group, size in bytes, and modification time. If
the file is a special file, the size field contains the major and minor device numbers. If the
file is a symbolic link, the pathname of the linked-to file is printed, preceded by ->. The
format of the -ls flag is identical to that of ls -gilds (note that formatting is done inter-
nally, without executing ls.)
-xdev Always TRUE; causes the find command to not traverse down into a file system
different from the one on which the current pathname resides. If any -xdev expression is
specified, it applies to the entire expression even if the -xdev expression would not nor-
mally be evaluated.
The primaries can be combined using the following operators (in descending order of
precedence):
( expression )
TRUE if expression is TRUE.
! expression
The negation of a primary (! is the unary not operator).
expression [-a] expression
Concatenation of primaries (the and operation is implied by the juxtaposition of two pri-
maries or can be explicitly stated as -a). The second expression is not evaluated if the first
expression is FALSE.
expression -o expre ssion
Alternation of primaries (-o is the or operator). The second expression is not evaluated if
the first expression is TRUE.
If no expression is present, -print is used as the expression; otherwise, if the given expression
does not contain any of the expressions -exec, -ok,or-print, the given expression is effectively
replaced by the following:
( expression )-print
The -user, -group, and -newer expressions each evaluate their respective arguments only once.
To avoid unpredictable results when using a range expression to match a class of characters, use a
character class expression rather than a standard range expression. For information about charac-
ter class expressions, see the reference page for the grep command.
Access Control Lists (ACLs)
The -acl expression enables the user to search for access control list (ACL) entries. The expression
TRUE if the file’s access control list matches an access control list pattern or contains optional
ACL entries (see the acl(5) reference page). The -acl expression has three forms:
-acl aclpatt Match all files that have ACLs that include all (zero or more) pattern entries
specified by the aclpatt pattern.
-acl =aclpatt Match a file only if its ACL includes all (zero or more) pattern entries specified by
the aclpatt pattern, and every entry in its ACL is matched by at least one pattern
entry specified in the aclpatt pattern.
-acl opt Match all files that have ACLs that include optional ACL entries.
By default, -acl is TRUE for files that have access control lists that include all the access control
list patterns in aclpatt. The ACL for a file can also contain unmatched entries.
527188-021 Hewlett-Packard Company 3−143