.Dd Created:2026-01-17|Updated:2026-03-27| .de ocsi \\$* , .. .de oxr .ocsi .Xr \\$* .. .de oit .It \\$* .. .de obdi .Bl -dash -compact .oit \\$* .. .de obdl .Bd -literal -compact \\$* .. .de onote .Bl -hang -compact .oit \\$* .El .. .de ocomm .Bl -diag -compact .oit \\$* .El .. .de opsy .Pp .Sy - \\$* .. .de obc .Bl -column \\$* .. .de obc2 .obc opt desc .. .de obc3 .obc option arguments description .. .Dt FIND oh .Os OpenBSD 7.8 , linux | .Nm find .Nd find files and directories, usage .Sh OPTIONS .obc2 .It -name PATTERN Ta : case sensitive search pattern. .It -iname PATTERN Ta : case insensitive search pattern. .It -type TYPE Ta : file type to search (bcdflps). See Sx TYPES . .It -empty Ta : find empty file or directory. .It -exec Ta : execute command on the results. See Sx EXEC . .It -mtime N Ta : difference between last modification time and the start of find. .It -mindepth N Ta : minimum depth level to search. .It -maxdepth N Ta : maximum depth level to search. .El .Ss TYPES .obc2 .It f Ta : regular file. .It d Ta : directory. .It b Ta : block special. .It l Ta : symbolic link. .It p Ta : FIFO. .It s Ta : socket. .It c Ta : character special. .El .Sh EXEC .Dl find . -type d -exec ls {} \e; .Sh EXPRESSIONS .Sh OPERATORS Conditions can be grouped with the following operators: -or, -and. .It Find files or directories Ta : Li find . \( -type f -or -type d \) .It Find files updated more than 3 days ago Ta : Li find . \( -type f -and -mtime +3 \) .It Find files with updated more than 3 days ago or directories Ta : Li find . \( \( -type f -and -mtime +3 \) -or -type d \) .El .Sh SEE ALSO .opsy OpenBSD manpages: .Xr find 1 .Sh AUTHORS .An -nosplit .Xr ohazot oh | .Xr about oh | .Lk https://ohazot.com ohazot.com .Aq Mt admin@ohazot.com