Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)
find(1) OSS Shell and Utilities Reference Manual
• The symbol = (equal sign) sets the appropriate mode bits without regard to the
contents of the process’s file mode creation mask.
-perm [-]octal_number
If the - (dash) is omitted, TRUE when the file permission bits exactly match the value of
the octal number octal_number and only the bits corresponding to the octal mask 07777
are compared. (For more information, see the description of the octal mode on the
chmod command’s reference page.) If octal_number is preceded by a - (dash), the
expression evaluates as TRUE if at least all of the bits specified in octal_number that
are also set in the octal mask 07777 are set.
-prune Always TRUE. This expression prunes the search tree at the file. That is, if the current
pathname is a directory, the find command does not descend into that directory. If the -
depth expression is specified, the -prune expression has no effect.
-type type
TRUE if the file type is of the specified type as follows:
b Block special file
c Character special file
d Directory
f Plain file
p FIFO (a named pipe)
-links number
TRUE if the file has number links. The argument number is a decimal integer that can
be specified as +number (more than number), -number (less than number), or number
(exactly number). See the reference page for the ln command.
-user user
TRUE if the file belongs to user.
-nouser TRUE if the file belongs to a user ID for which the getpwuid() function returns null.
-group group
TRUE if the file belongs to group.
-nogroup
TRUE if the file belongs to a group ID for which the getgrgid() function returns null.
-size number[c | k]
TRUE if the file is number blocks long (512 bytes per block). For this comparison, the
file size is rounded up to the nearest block. If the c argument is present, the expression
evaluates to TRUE if the file is number bytes long. If the k argument is present, the
expression evaluates to TRUE if the file is number kilobytes long. For this comparison,
the file size is rounded up to the nearest kilobyte.
The argument number is a decimal integer that can be specified as +number (more than
number), -number (less than number), or number (exactly number).
-atime number
TRUE if the file was accessed in the past number days. The argument number is a
decimal integer that can be specified as +number (more than number), -number (less
than number), or number (exactly number). For example -atime 3 is TRUE if the file
was accessed any time in the period from 72 to 48 hours ago.
3−138 Hewlett-Packard Company 527188-007