Posted on
Software

exa: Modern replacement for `ls` with better formatting

Author
  • User
    Linux Bash
    Posts by this author
    Posts by this author

Embracing exa: The Modern Replacement for ls in Linux

As the Linux environment evolves, so does the array of tools that enhance the way we interact with the operating system. One such tool that has gathered attention is exa, a modern replacement for the traditional ls command. exa is designed to be more feature-rich, with better defaults, and a more pleasant output format that significantly improves user experience on the command line.

What is exa?

exa is a command-line utility developed to replace ls, the standard command for listing directories and files in Unix-like operating systems. It integrates functionalities that are commonly used in file management like sorting, displaying, and formatting output more effectively. exa is written in Rust, making it fast and reliable for handling files and directories.

Key Features of exa

  • Colorful Output: exa uses colors to distinguish file types and metadata.

  • Icons: When used with the --icons flag, it displays relevant icons next to filenames.

  • Git Integration: Seamlessly integrates with Git to show the status of each file.

  • Tree View: Allows a tree-style display of directory contents using the -T option.

  • More Information: Displays extended file metadata as part of the listing.

How to Install exa on Linux

Installing exa can vary depending on the Linux distribution you are using. Below are the instructions for some of the most popular Linux package managers: apt, dnf, and zypper.

Debian and Ubuntu (Using apt)

For Debian-based distributions like Ubuntu, you can install exa from the official repositories. First, update your package list:

sudo apt update

Then, install exa using:

sudo apt install exa
Fedora (Using dnf)

For Fedora users, exa can be installed using the dnf package manager. Update your system and install exa as follows:

sudo dnf update
sudo dnf install exa
openSUSE (Using zypper)

If you are using openSUSE, exa can be installed using the zypper package manager. First, refresh your repositories:

sudo zypper refresh

Then install exa:

sudo zypper install exa

Getting Started with exa

Once installed, you can start exploring exa's capabilities. Here are a few basic commands to get you started:

  • Simply list directory contents: exa

  • List files with detailed information: exa -l

  • List files with Git status: exa -l --git

  • Display a tree view of directories: exa -T

Why Opt for exa?

While ls has been adequate for basic file listing, the enriched features and user-friendly output of exa make it an attractive alternative. For users who work extensively on the command line or need more detailed information about their files directly in their terminal, exa offers a potent upgrade over the traditional ls command.

Whether you are a developer, system administrator, or a general Linux enthusiast, exa enhances file management with its modern functionalities and gives you a powerful tool at your fingertips. Give exa a try, and you may find it becomes a valuable part of your command-line toolkit!