Find files and directories with FSearch
Quick Finder
In a crowded field of search applications, FSearch offers many interesting functions for quickly searching files and folders, with more promised in the future.
Data has the bad habit of hiding away in the depths of the filesystem precisely when you need it urgently. That's why there are tools at different levels to help with searching, including FSearch v0.2.2. Similar to the Findutils for locate
, FSearch first builds a database of the selected data, which can then be searched at lightning speed. The search begins as soon as you start entering the search term.
Great Selection
It is important to distinguish between desktop environment search tools and generic search tools. In terms of user interfaces, KDE Plasma offers the KRunner, KFind, and Baloo programs, the latter being the underpinnings for searching with the Dolphin file manager. Gnome comes with Tracker integrated into the Nautilus file manager by default. In addition, there are many search apps that do not depend on a desktop and can be set up retroactively. The best-known candidates here include Catfish, ANGRYsearch, Recoll, and FSearch. At the command line, there are the tried-and-trusted find
and locate
tools, and others.
This article covers the open source FSearch tool, whose search speed is hard to beat and which comes with some interesting features. German developer Christian Boxdörfer was inspired to create FSearch [1] by the speed of the Everything search engine [2] on Windows. First released in 2016, the C program is based on the GTK3 toolkit. The developer is already planning a conversion to the Qt framework, but the app already integrates quite well with Qt-based systems.
FSearch has a clear-cut graphical interface. If you enable client-side decorations in the Preferences dialog's Interface tab (Figure 1), the menubar will then appear in a hamburger menu top right (Figure 2).
Installation
Despite its good qualities, FSearch has not yet arrived in the archives of all distributions. Only MX Linux, Solus, PCLinuxOS, GNU Guix, and FreeBSD have the official binaries. Arch Linux offers the tool in its Arch User Repository (AUR).
Fortunately, the Boxdörfer provides packages for Debian and openSUSE via SUSE's Open Build Service [3]. Fedora and RHEL users will find the program in the Copr repository [4], while Ubuntu users can access it via a Personal Package Archive (PPA) [5]. A Flatpak can be found on Flathub, but with limited functionality [6]. The developer also offered a Snap package, but the package format had so many restrictions that he switched to a PPA.
The current version, FSearch v0.2.2, was released in August 2022. The alpha version 0.3 is available for Ubuntu as a daily build, from the AUR as a Git dump, and for Fedora as a nightly build. The application can also be compiled from the source code without major issues [7]. I will stick to the stable version in this article, using Debian and Fedora for testing. The end of the article reveals what Boxdörfer has planned for upcoming releases.
First Launch
When you launch the application for the first time, you will see a notice that the database is empty. A switch lets you specify the folders you want to include or exclude from the search (Figure 3). Then indexing begins – this can take some time, depending on the size of the filesystem and the number of directories you add. However, on subsequent launches, loading the database only takes a moment.
On my fairly large test system with over 2.3 million entries in the FSearch database, the index is 104MB, and the first indexing run took about 10 minutes. The FSearch configuration file is located in ~/.config/fsearch.conf
and the database in ~/.local/share/fsearch.db
.
The top line in the FSearch window is occupied by the search mask. To the right, a drop-down menu lets you limit the search to specific file types, even after the search results are made available. The hamburger menu or, depending on the setting, the menubar, lets users open another window, manually update the database, and perform other tasks. There are also various options for disabling the search button, filters, or status bar. The status bar is located at the bottom of the window and displays the number of matches for the current search on the left and the total number of indexed files on the right.
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Armbian 24.11 Released with Expanded Hardware Support
If you've been waiting for Armbian to support OrangePi 5 Max and Radxa ROCK 5B+, the wait is over.
-
SUSE Renames Several Products for Better Name Recognition
SUSE has been a very powerful player in the European market, but it knows it must branch out to gain serious traction. Will a name change do the trick?
-
ESET Discovers New Linux Malware
WolfsBane is an all-in-one malware that has hit the Linux operating system and includes a dropper, a launcher, and a backdoor.
-
New Linux Kernel Patch Allows Forcing a CPU Mitigation
Even when CPU mitigations can consume precious CPU cycles, it might not be a bad idea to allow users to enable them, even if your machine isn't vulnerable.
-
Red Hat Enterprise Linux 9.5 Released
Notify your friends, loved ones, and colleagues that the latest version of RHEL is available with plenty of enhancements.
-
Linux Sees Massive Performance Increase from a Single Line of Code
With one line of code, Intel was able to increase the performance of the Linux kernel by 4,000 percent.
-
Fedora KDE Approved as an Official Spin
If you prefer the Plasma desktop environment and the Fedora distribution, you're in luck because there's now an official spin that is listed on the same level as the Fedora Workstation edition.
-
New Steam Client Ups the Ante for Linux
The latest release from Steam has some pretty cool tricks up its sleeve.
-
Gnome OS Transitioning Toward a General-Purpose Distro
If you're looking for the perfectly vanilla take on the Gnome desktop, Gnome OS might be for you.
-
Fedora 41 Released with New Features
If you're a Fedora fan or just looking for a Linux distribution to help you migrate from Windows, Fedora 41 might be just the ticket.