_                    _
  ___ | |__   __ _ _______ | |_
 / _ \| '_ \ / _` |_  / _ \| __|
| (_) | | | | (_| |/ / (_) | |_
 \___/|_| |_|\__,_/___\___/ \__|

findfind 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.

f : regular file.
d : directory.
b : block special.
l : symbolic link.
p : FIFO.
s : socket.
c : character special.

back to top

find. -type d -exec ls {} \;

back to top

back to top

Conditions can be grouped with the following operators: -or, -and.

back to top

- OpenBSD manpages: find(1)

back to top

ohazot | about | ohazot.com <admin@ohazot.com>

This document applies to: OpenBSD 7.8 , linux | Created:2026-01-17|Updated:2026-03-27|