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
-
TUXEDO Computers Unveils Linux Laptop Featuring AMD Ryzen CPU
This latest release is the first laptop to include the new CPU from Ryzen and Linux preinstalled.
-
XZ Gets the All-Clear
The back door xz vulnerability has been officially reverted for Fedora 40 and versions 38 and 39 were never affected.
-
Canonical Collaborates with Qualcomm on New Venture
This new joint effort is geared toward bringing Ubuntu and Ubuntu Core to Qualcomm-powered devices.
-
Kodi 21.0 Open-Source Entertainment Hub Released
After a year of development, the award-winning Kodi cross-platform, media center software is now available with many new additions and improvements.
-
Linux Usage Increases in Two Key Areas
If market share is your thing, you'll be happy to know that Linux is on the rise in two areas that, if they keep climbing, could have serious meaning for Linux's future.
-
Vulnerability Discovered in xz Libraries
An urgent alert for Fedora 40 has been posted and users should pay attention.
-
Canonical Bumps LTS Support to 12 years
If you're worried that your Ubuntu LTS release won't be supported long enough to last, Canonical has a surprise for you in the form of 12 years of security coverage.
-
Fedora 40 Beta Released Soon
With the official release of Fedora 40 coming in April, it's almost time to download the beta and see what's new.
-
New Pentesting Distribution to Compete with Kali Linux
SnoopGod is now available for your testing needs
-
Juno Computers Launches Another Linux Laptop
If you're looking for a powerhouse laptop that runs Ubuntu, the Juno Computers Neptune 17 v6 should be on your radar.