Linux command
fdfind 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Find files by name
fdfind [pattern]
Find with extension
fdfind -e [txt] [pattern]
Find directories only
fdfind -t d [pattern]
Find files only
fdfind -t f [pattern]
Search hidden files
fdfind -H [pattern]
Search specific directory
fdfind [pattern] [/path/to/search]
Execute command on results
fdfind [pattern] -x [command]
Case-sensitive search
fdfind -s [Pattern]
说明
fdfind (or fd) is a simple, fast, and user-friendly alternative to find, written in Rust. It uses regex patterns by default and respects .gitignore files, making it ideal for searching code repositories. The command provides colorful output, sensible defaults that ignore hidden and gitignored files, and parallel execution for better performance. On Debian-based systems, the binary is named fdfind to avoid conflicts with another package.
参数
- -e, --extension _ext_
- Filter by extension.
- -t, --type _type_
- Filter by type (f, d, l, x).
- -H, --hidden
- Include hidden files.
- -I, --no-ignore
- Don't respect ignore files.
- -s, --case-sensitive
- Case-sensitive search.
- -x, --exec _cmd_
- Execute command on each result.
- -X, --exec-batch _cmd_
- Execute command with all results.
- -d, --max-depth _num_
- Maximum search depth.
- -E, --exclude _pattern_
- Exclude pattern.
FAQ
What is the fdfind command used for?
fdfind (or fd) is a simple, fast, and user-friendly alternative to find, written in Rust. It uses regex patterns by default and respects .gitignore files, making it ideal for searching code repositories. The command provides colorful output, sensible defaults that ignore hidden and gitignored files, and parallel execution for better performance. On Debian-based systems, the binary is named fdfind to avoid conflicts with another package.
How do I run a basic fdfind example?
Run `fdfind [pattern]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -e, --extension _ext_ do in fdfind?
Filter by extension.