_ _ ___ | |__ __ _ _______ | |_ / _ \| '_ \ / _` |_ / _ \| __| | (_) | | | | (_| |/ / (_) | |_ \___/|_| |_|\__,_/___\___/ \__|
| ohazot | docs | links | dev | conf | txt |
| es | en |
| mdoc file |
| search |
find —
find files and directories,
usage
OPTIONS
| -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. |
TYPES
| f | : regular file. |
| d | : directory. |
| b | : block special. |
| l | : symbolic link. |
| p | : FIFO. |
| s | : socket. |
| c | : character special. |
EXEC
find. -type d -exec ls {}
\;EXPRESSIONS
OPERATORS
Conditions can be grouped with the following operators: -or, -and.
SEE ALSO
- OpenBSD manpages: find(1)