Skip to content

📁 fd

fd is a simple, fast, and user-friendly alternative to find.

🛠 Installation

sudo apt install fd-find
sudo apt install fd-find
brew install fd

⚙ Config

fd can be configured with a configuration file. By default, fd will look for a configuration file in $XDG_CONFIG_HOME/fd/config or $HOME/.fdrc.

$HOME/.fdrc

--hidden
--exclude .git

📝 Usage

1. Find files by name

fd "pattern"

2. Find files by extension

fd -e js

3. Execute a command on found files

fd ".md" -exec wc -l

4. Search hidden files and directories

fd -H "pattern"

🔗 References