$ find
Search for files in a directory hierarchy
DOCUMENTEDSearch & textUbuntu 24.04 LTS baseline
Synopsis
find [-H] [-L] [-P] [-D debugopts] [-Olevel] [starting-point...] [expression]
What it does
- GNU `find` evaluates an expression against entries in a directory tree.
- Quote patterns such as `*.log` so the shell does not expand them before `find` sees them.
Examples
Find files by name
find /var/log -name '*.log'Find regular files
find . -type fFind files modified recently
find . -mtime -1Important details
These examples are intentionally conservative. Command behavior can still depend on filesystem state, permissions, locale, shell, installed package version, and other system configuration.
For exact option semantics, the linked authoritative documentation is the source of truth.