find path [tests] [actions]Arguments explained
- path is where to start.
- -name matches names with shell-style patterns.
- -type f finds files; -type d finds directories.
- -mtime filters by modification days.
- -exec runs a command for each match.
Common examples
find /var/log -type f -name "*.log"Searches for regular files ending in .log.
find ~ -type f -size +500MLocates files larger than 500 MB under your home directory.
| Field | Details |
|---|---|
| Command | find |
| Category | Search and Filtering |
| Primary use | Searches for files by name, type, time, size, and more. |
| Syntax | find path [tests] [actions] |