Fundamentals 4 min read

Why exa Beats ls: A Faster, Colorful File‑Listing Tool for the Terminal

This guide introduces exa, a Rust‑based modern replacement for the traditional ls command, covering its installation, key features such as color‑coded output, Git integration, tree view, extended attributes, symlink detection, and recursive listing, helping users work more efficiently in the terminal.

Liangxu Linux
Liangxu Linux
Liangxu Linux
Why exa Beats ls: A Faster, Colorful File‑Listing Tool for the Terminal

What is exa?

exa is a modern, Rust‑written alternative to the classic ls command that provides a more pleasant and informative default output, including color‑coded file types, Git status, and extended metadata.

Installation

On Fedora‑based systems you can install exa with the package manager:

$ dnf install exa

Key Features

Colorful output that distinguishes file types and metadata.

Built‑in Git integration to show added, modified, or ignored files.

Single‑binary, small footprint, and fast execution.

Tree View

Use the --level flag to control the depth of the displayed directory tree. For example, exa --level=2 shows two levels of subdirectories; increase the value for deeper listings.

Color Scheme

exa applies a built‑in color scheme to a wide range of file types, including Cargo.toml, CMakeLists.txt, Gruntfile.coffee, Gruntfile.js, Makefile, and many others, making it easy to spot them at a glance.

Extended Attributes

When you want to view extended file attributes (xattrs), add the --extended flag; exa will list all available xattrs for each file.

Symlink Detection

exa correctly identifies symbolic links and displays the target path, helping you understand link relationships.

Recursive Listing

To list all files recursively under the current directory, simply run exa -R (or exa --recursive), and exa will traverse subdirectories automatically.

Conclusion

The author finds exa to be one of the simplest and most adaptable tools, praising its Git and Maven file tracking, color‑coded output, and ability to reveal xattrs, making navigation of complex directory trees much easier.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Rustcommand-lineterminalfile-listingexals alternative
Liangxu Linux
Written by

Liangxu Linux

Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.