New options for traditional Unix commands
fd for find
If you are looking for a replacement for find
, fd
[2] (or fdfind
, as Debian calls it) covers the most common uses of find
(Figure 8). Especially if you use regular expressions, fd
can produce results four or five times faster than find
. However, fd
offers other equally useful features, including a simpler syntax, color input, and defaults that include case-insensitivity and the ignoring of hidden files. Should you need case-sensitivity, all you need to do is use uppercase letters in the search pattern.
plocate for locate
Over the years, locate
has had several different versions, including mlocate
. All use a database to increase the speed of file searches. The most recent version, plocate
(Figure 9), is a drop-in replacement that is starting to be the norm in many major distributions. The main advantage of plocate
is that it can be three or four times faster than any of its predecessors on large searches, thanks mainly to the fact that it usually does not search through its entire database unless the search item is extremely small. Unlike its predecessors, plocate
can also search for multiple strings at the same time, which can speed up the file search.
ripgrep for grep
Together with its variants, grep
offers a comprehensive search function for text patterns. However, sometimes, its speed seems measured in eons. The main reason to use ripgrep
is that it is much faster than grep
for large searches (Figure 10). Much of this speed is obtained by ignoring hidden and binary files by default and by the use of a .gitignore
file to list other exceptions. Even more important, while grep
is confined to plain text files, ripgrep
supports a number of different file types and Unicode encodings, which can either make a search more comprehensive or else restrict it. Other useful features include an enhanced regex engine. While ripgrep
is not the only grep
replacement, it outperforms alternatives such as ag
, git grep
, ucg
, pt
, and sif
in most cases.
« Previous 1 2 3 4 Next »
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
-
First Release Candidate for Linux Kernel 6.14 Now Available
Linus Torvalds has officially released the first release candidate for kernel 6.14 and it includes over 500,000 lines of modified code, making for a small release.
-
System76 Refreshes Meerkat Mini PC
If you're looking for a small form factor PC powered by Linux, System76 has exactly what you need in the Meerkat mini PC.
-
Gnome 48 Alpha Ready for Testing
The latest Gnome desktop alpha is now available with plenty of new features and improvements.
-
Wine 10 Includes Plenty to Excite Users
With its latest release, Wine has the usual crop of bug fixes and improvements, along with some exciting new features.
-
Linux Kernel 6.13 Offers Improvements for AMD/Apple Users
The latest Linux kernel is now available, and it includes plenty of improvements, especially for those who use AMD or Apple-based systems.
-
Gnome 48 Debuts New Audio Player
To date, the audio player found within the Gnome desktop has been meh at best, but with the upcoming release that all changes.
-
Plasma 6.3 Ready for Public Beta Testing
Plasma 6.3 will ship with KDE Gear 24.12.1 and KDE Frameworks 6.10, along with some new and exciting features.
-
Budgie 10.10 Scheduled for Q1 2025 with a Surprising Desktop Update
If Budgie is your desktop environment of choice, 2025 is going to be a great year for you.
-
Firefox 134 Offers Improvements for Linux Version
Fans of Linux and Firefox rejoice, as there's a new version available that includes some handy updates.
-
Serpent OS Arrives with a New Alpha Release
After months of silence, Ikey Doherty has released a new alpha for his Serpent OS.