find Command Generator
Generate find commands to search files in a directory hierarchy
Getting Started with find
## What is find?
The `find` command searches for files in a directory hierarchy. It's incredibly powerful for locating files by name, type, size, or other attributes, and can perform actions on matches.
## How to Use
1. **Set Path**: Enter the starting directory (default: current directory). 2. **Configure Filters**: Set name patterns, file type, max depth, etc. 3. **Choose Action**: Print, delete, or other actions. 4. **Copy & Run**: Copy the generated command into your terminal.
Common Filters
### `-name` Pattern Match files by name (supports wildcards like `*.txt`).
### `-type` File type Filter by type: `f` (file), `d` (directory), `l` (symlink).
### `-maxdepth` N Limit search depth (1 = only starting directory, 2 = one level down, etc.).
### `-empty` Match only empty files or directories.
Actions
### `-print` Print matching file paths (default action).
### `-delete` Delete matched files immediately (use with caution!).
▶How do I find files modified in the last 7 days?
▶How do I find and replace text in matched files?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee