🧀 Learn Linux

Master·Read and process text

find: Find paths by name or type

Put in free practice

Syntax

find [starting point] [condition]

Options

-name
File name wildcard
-type
Type f/d/l
-maxdepth
Maximum number of layers
-print
Output path
-delete
Delete matching path

Examples

find . -name "*.log"

Usage and sandbox support

Quote wildcards to avoid being expanded with Shell first. -delete should be previewed with -print before actual execution.

Hands-on exercises

Full documentation ↗

Related commands