fd is a super fast, Rust[1]-based alternative to the Unix/Linux find
command. It does not mirror all of find
's powerful functionality; however, it does provide just enough features to cover 80% of the use cases you might run into. Features like a well thought-out and convenient syntax, colorized output, smart case, regular expressions, and parallel command execution make fd
a more than capable successor.
Installation
Head over the fd GitHub page and check out the section on installation. It covers how to install the application on macOS, [2]Debian/Ubuntu[3], Red Hat[4], and Arch Linux[5]. Once installed, you can get a complete overview of all available command-line options by runningfd -h
for concise help, or fd --help
for more detailed help.
Simple search
fd
is designed to help you easily find files and folders in your operating system's filesystem. The simplest search you can perform is to run fd
with a single argument, that argument being whatever it is that you're searching for. For example, let's assume that you want to find a Markdown document that has the word services
as part of the filename:
$ fd services
downloads/services.md
If called with just a single argument, fd
searches the current directory recursively for any files and/or directories that match your argument. The equivalent search using the built-in find
command looks something like this:
$ find . -name 'services'
downloads/services.md
As you can see, fd
is much simpler and requires less typing. Getting more done with less typing is always a win