Try GOLD - Free

A modern find command User-Friendly Search

Linux Magazine

|

#293/April 2025: Trojan Horse

An update for the find command, fd offers significant improvements with many user-friendly options.

- By Bruce Byfield

A modern find command User-Friendly Search

Linux has never lacked for search commands. Commands such as grep and find date back to the early days of Unix, and their options make for lengthy man pages. However, if such commands have a weakness, it would be their reliance on regular expressions, a pattern-matching system that is an art in itself, but one that fewer and fewer users today seem to have much fluency in. Because of this problem, the modern fd command (aka fdfind) [1] is an increasingly popular alternative to find and already available in many distributions. It is not that fd does not support regular expressions – in fact, it also supports Rust’s Glob, as well as the use of both regular expressions and Glob in the same command. However, just as find includes more user-friendly options than grep, so fd includes more than either of its older predecessors.

imageFigure 1: The start of results for the basic fdfind command.

The basic command depends on the distribution. In Arch Linux, it is fd, while Debian uses fdfind. In either case, fd is followed by options and a search string, as you would expect (Figure 1).

Should you type incorrectly, the help is concise and to the point (Figure 2). Its output can include both file and directory names, different file types, and attributes, depending on the options chosen. Complete coverage of fd’s other options would be impractically long, let alone for the regex syntax or Glob, so I will provide a brief overview of the general categories available.

imageFigure 2: A typical error message is concise and offers alternatives.

File Attribute Options

MORE STORIES FROM Linux Magazine

Linux Magazine

Exercise Place

The GRUB 2 boot manager might seem intimidating at first glance. All the more reason to spin up a virtual playground so you can practice.

time to read

10 mins

#298/September 2025: Indie Game Studio

Linux Magazine

Terminal Mosaic

What's better than one command line? Many command lines that never die. Take the terminal to new places with Zellij.

time to read

9 mins

#298/September 2025: Indie Game Studio

Linux Magazine

Linux Magazine

MakerSpace

Build a Long-Range Sensor Network with ChirpStack Sensor Symphony

time to read

14 mins

#298/September 2025: Indie Game Studio

Linux Magazine

Linux Magazine

How Flatpak, AppImage, and Snap are changing software distribution Ship It!

Modern-day package systems solve some problems posed by classic formats like DEB and RPM. We look at Flatpak, AppImage, and Snap and describe how they differ.

time to read

12 mins

#298/September 2025: Indie Game Studio

Linux Magazine

Linux Magazine

Dashboard Delight

Simplify the chaos of self-hosted services with Homepage, a customizable dashboard with widgets that put service statistics at your fingertips.

time to read

9 mins

#298/September 2025: Indie Game Studio

Linux Magazine

Linux Magazine

MADDOG'S DOGHOUSE

Free software, and the FOSS community, can help technology students get the education they desire in Brazil and elsewhere.

time to read

3 mins

#298/September 2025: Indie Game Studio

Linux Magazine

Linux Magazine

Rethinking the Terminal

The Warp AI agent takes the guesswork out of working at the command line. We show you how to build a simple website with one prompt.

time to read

4 mins

#298/September 2025: Indie Game Studio

Linux Magazine

Just in Time

Just is a command runner that lets you define project-specific tasks in a declarative justfile.

time to read

7 mins

#298/September 2025: Indie Game Studio

Linux Magazine

Linux Magazine

The Watcher

This versatile security app checks for vulnerabilities, watches logs, and acts as a single interface for other tools.

time to read

7 mins

#298/September 2025: Indie Game Studio

Linux Magazine

Linux Magazine

NO INTERNETREQUIRED

This new utility lets you update a system that is notconnected to the Internet.

time to read

4 mins

#298/September 2025: Indie Game Studio

Listen

Translate

Share

-
+

Change font size