fd
Fast and user-friendly alternative to find
Quick summary
fd is a fast and user-friendly alternative to find. It uses simple, intuitive syntax, respects .gitignore by default, produces colorized output, and is significantly faster than find.
Common tasks
Basic Usage
fd patternBasic Usage
fd -e mdBasic Usage
fd pattern /path/to/searchBasic Usage
fd --type fWhat is it?
fd is a fast and user-friendly alternative to find. It uses simple, intuitive syntax, respects .gitignore by default, produces colorized output, and is significantly faster than find.
Basic Usage
Search by pattern:
$fd pattern
Search by extension:
$fd -e md
Search in a specific path:
$fd pattern /path/to/search
Filter by file type:
$fd --type f
$fd --type d
Include hidden files:
$fd --hidden
Execute a command on results:
$fd --exec vim
Tips
▶ If installed, fzf automatically uses fd as its default file search backend.
▶ Run fd '' to list all files recursively in the current directory.
▶ Use --type d to search for directories only.