_ _
___ | |__ __ _ _______ | |_
/ _ \| '_ \ / _` |_ / _ \| __|
| (_) | | | | (_| |/ / (_) | |_
\___/|_| |_|\__,_/___\___/ \__|
find —
find files and directories,
usage
| -name PATTERN |
: case sensitive search pattern. |
| -iname PATTERN |
: case insensitive search pattern. |
| -type TYPE |
: file type to search (bcdflps). See
TYPES. |
| -empty |
: find empty file or directory. |
| -exec |
: execute command on the results. See
EXEC. |
| -mtime N |
: difference between last modification time and the start of find. |
| -mindepth N |
: minimum depth level to search. |
| -maxdepth N |
: maximum depth level to search. |
| -ls |
: list results as produced by ls -dils |
| f |
: regular file. |
| d |
: directory. |
| b |
: block special. |
| l |
: symbolic link. |
| p |
: FIFO. |
| s |
: socket. |
| c |
: character special. |
find. -type d -exec ls {}
\;
(back to top)
Conditions can be grouped with the following operators: -or,
-and.