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 pattern

Basic Usage

fd -e md

Basic Usage

fd pattern /path/to/search

Basic Usage

fd --type f

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