LinuxCommandLibrary

fdfind

fast and user-friendly file finder

TLDR

Find files by name

$ fdfind [pattern]
copy
Find with extension
$ fdfind -e [txt] [pattern]
copy
Find directories only
$ fdfind -t d [pattern]
copy
Find files only
$ fdfind -t f [pattern]
copy
Search hidden files
$ fdfind -H [pattern]
copy
Search specific directory
$ fdfind [pattern] [/path/to/search]
copy
Execute command on results
$ fdfind [pattern] -x [command]
copy
Case-sensitive search
$ fdfind -s [Pattern]
copy

SYNOPSIS

fdfind [options] [pattern] [path...]

DESCRIPTION

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.

PARAMETERS

-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.

CAVEATS

Uses regex patterns by default, not glob syntax. Ignores hidden and .gitignore files unless explicitly enabled. May not cover all find use cases.

SEE ALSO

find(1), ripgrep(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community