find |
---|
|
find [ files-or-directories ] [ options ] |
---|
|
Find files matching specified name patterns, or having given attributes. |
---|
|
See the text for a description of the numbers mask and n that follow some of these options: |
---|
-atime n |
---|
Select files with access times of n days. |
---|
-ctime n |
---|
Select files with inode-change times of n days. |
---|
-follow |
---|
Follow symbolic links. |
---|
-group g |
---|
Select files in group g (a name or numeric group ID). |
---|
-links n |
---|
Select files with n hard links. |
---|
-ls |
---|
Produce a listing similar to the ls long form, rather than just filenames. |
---|
-mtime n |
---|
Select files with modification times of n days. |
---|
-name 'pattern' |
---|
Select files matching the shell wildcard pattern (quoted to protect it from shell interpretation). |
---|
-perm mask |
---|
Select files matching the specified octal permission mask. |
---|
-prune |
---|
Do not descend recursively into directory trees. |
---|
-size n |
---|
Select files of size n. |
---|
-type t |
---|
Select files of type t, a single letter: d (directory), f (file), or l (symbolic link). There are letters for other file types, but they are not needed often. |
---|
-user u |
---|
Select files owned by user u (a name or numeric user ID). |
---|
|
find descends into directory trees, finding all files in those trees. It then applies selectors defined by its command-line options to choose files for further action, normally printing their names or producing an ls-like verbose listing. |
---|
|
Because of find's default directory descent, it potentially can take a long time to run in a large filesystem. |
---|
|
find's output is not sorted. |
---|
find has additional options that can be used to carry out arbitrary actions on the selected files. Because this is potentially dangerous, we do not recommend their use except in tightly controlled situations. |
---|