exa: a colorful replacement for 'ls'
exa is a modern alternative to the popular ‘ls’ file-listing command with more features and better defaults.
Table of Contents
exa is available on the official repositories of most Linux-based operating systems (and macOS). Install it with your system’s package manager (
You can use
ls. For example, run
exa to show a simple file-listing (but with colors to distinguish file types). Run
exa -l (or
exa --long) for a ‘long listing’, with more info about each file (permissions, size, owner,…). Other available parameters are (some are similar to
--header: add a header to the long listing.
--all: show hidden files.
--recursive: recurse into directories. Limit the recursion level with
exa -R -L 2
-s <SORT FIELD>,
--sort=<SORT_FIELD>: sort by some field.
exa -l --sort=size
exa -l -s modified
--reverse: reverse the order.
--tree: recurse into directories as a tree. Use
-L <level>to limit the recursion.
--git: show each file’s Git status (
-for not modified,
Nfor new file,
Dfor deleted, etc.).
Check its manpage (
man exa) for more info about these and other parameters.
If you have any suggestion, feel free to contact me via social media or email.