fd: a simple command to perform very fast searches

Search Linux

We all know the find command to find files in our GNU / Linux distro, a command without a doubt very powerful and with infinite possibilities that makes it much easier for us to search for things when we need them. But its power does not keep up with its speed in many cases, especially when we search the entire hard drive, since it can take a considerable amount of time. Apart from this command, there are other options to search or find things faster using indexed content as you well know ...

However, not only do we have these tools at our fingertips, there are also others that can help us in our day-to-day work with Linux, and an example is fd, a program to search very simply and quickly what we need to find. With it we can find things with a very simple syntax, have an output with colors to better identify what it shows us, the searches will be done very quickly, it has case-insensitive by default, but it can be configured to have case-sensitive and is case sensitive ...

It also does not look in hidden files and directories by default, but you can set up also to do so. If you are interested, I have to tell you that you can install it easily depending on the distro you use. For example, for Debian / Ubuntu-based:

wget https://github.com/sharkdp/fd/releases/download/v7.3.0/fd-musl_7.3.0_amd64.deb

sudo dpkg -i fd-musl_7.3.0_amd64.deb

For other distros, you can use these other commands to openSUSE, Arch Linux and Gentoo respectively:

zypper in fd
pacman -S fd
emerge -av fd

For, use it, It is very simple, but perhaps first you will be interested in knowing all the options with the help that it shows:

fd -h

Y for to searchFor example, find a file with an .mp3 extension called Natalie:

fd -e mp3 Natalie

Or to search within the content From a file the word Keila, in all the .txt files in the / home / Isaac directory:

fd -e .txt Keila /home/Isaac

The content of the article adheres to our principles of editorial ethics. To report an error click here!.

Be the first to comment

Leave a Comment

Your email address will not be published.

*

*

  1. Responsible for the data: AB Internet Networks 2008 SL
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.