fd logo

fd

Fast filesystem search tool that replaces find with regex patterns and smart defaults

fd is a filesystem search tool that serves as a replacement for the traditional Unix find command. It uses regular expressions by default for pattern matching and provides simplified syntax - searching for a pattern requires only fd PATTERN instead of find's more complex syntax like find -iname '*PATTERN*'.

The tool includes several convenience features that distinguish it from find. It performs parallelized directory traversal for faster searches, uses smart case sensitivity (case-insensitive by default, switching to case-sensitive when uppercase characters are present), and respects .gitignore patterns automatically. By default, fd ignores hidden files and directories, though this can be overridden with flags like -H for hidden files or -I to ignore .gitignore patterns.

fd supports command execution on search results through -x for parallel execution and -X for batch execution. It includes placeholder syntax for file manipulation - {} for the full path, {.} without extension, {/} for basename, and others. The tool also provides colored output to highlight different file types and supports glob patterns with the -g flag for exact filename matching.

fd demo showing filesystem search

Alternatives & related tools

add a badge to your README

Maintain fd? Show that it's featured on trmn. The badge links back to this page.

Featured on trmn
Markdown
[![Featured on trmn](https://www.trmn.sh/badge/fd.svg)](https://www.trmn.sh/tools/fd?utm_source=badge)
HTML
<a href="https://www.trmn.sh/tools/fd?utm_source=badge"><img src="https://www.trmn.sh/badge/fd.svg" alt="Featured on trmn" height="20"></a>