exa: The Linux ls Replacement That’s a Little Bit Extra

The Linux ls command is something most users use all the time, but they never seem to think it could be improved upon.

exa aims to replace this venerable command with a colorful appearance and new features. Will it replace ls for you? Let’s find out!

4

What Is exa?

exais a file listing utility similar tothe standard ls commandsupplied with Linux distributions. It’s an open-source program written by Benjamin Sago. It’s written in Rust and supports many modern Unix-like systems, including macOS, the BSDs, and of course, Linux.

exa is unique for its extra features, such as its appearance, the ability to list extended file attributes, its awareness of Git, and the ability to display directories in a tree format.

Woman looking at binders on shelf

Installing exa on Linux

exa is available in the official repositories of several major Linux distros. You can install it on Debian and Ubuntu using APT:

And on Arch Linux with:

exa command at the command line

For the RHEL/Fedora/CentOS family:

Using exa to List Directories and Files

You can use exa just as you would use ls. The arguments are almost identical.

To list the files in your current working directory, just use the exa command by itself:

exa with –long option

exa also takespath namesas arguments:

To display more information, use the-lor–longoption:

exa with –tree option

To display hidden files, use the-aor–alloption.

To display subdirectories in a tree-like format, use the-Tor–treeoption.

To use exa to search subdirectories, it’s possible to use the-Ror–recurseoption, similar to ls:

The–gridoption displays the output in a more compact fashion, which is useful for longer directory listings.

it’s possible to combine these arguments on the same command line. For example, to show a recursive tree with extended file attributes, including hidden files, starting from a certain directory, you’d type this command:

You can also use the shorter form:

With the long to short options, this might be a lot to type. You should considercreating a Linux shell aliasfor the combinations you use frequently.

exa Is a Powerful Replacement for ls

With exa’s features, you may want to replace ls with it for listing files. You can list files more colorfully than with the standard ls utility. But when you find the files, you’ll want to do more. You’ll want to list their contents and examine them. Linux comes standard with tools to do these things.

Linux has several commands that you can use to output the content of a file in the terminal.

Don’t let someone else take over your phone number.

Windows is great, but adding this makes it unstoppable.

Goodbye sending links via other apps.

Flagship price, mid-range phone.

I gripped my chair the entire time—and then kept thinking about it when the screen turned off.

Technology Explained

PC & Mobile