DEV Community

Kentaro Kuwata
Kentaro Kuwata

Posted on

How to install exa in Ubuntu

exa is a great comman-line tool for file-listing.
It is a modern replacement of ls

Installation in Ubuntu

By executing the following 3 commands, you can easily install exa in your Ubuntu environment (reference).

# Till the date of publication of this article, the latest available download version is the 0.8.0
wget -c https://github.com/ogham/exa/releases/download/v0.8.0/exa-linux-x86_64-0.8.0.zip
unzip exa-linux-x86_64-0.8.0.zip
Copy snippet
# Move the unziped binary with the name "exa-linux-x86_64" to "/usr/local/bin/" with the exa name
sudo mv exa-linux-x86_64 /usr/local/bin/exa
Enter fullscreen mode Exit fullscreen mode

But cannot use --icons

exa has cool options. --tree, --g, etc. --icons options is one of those options. But, I could not use --icons option, if installed exa by following above steps.

To use --icons option, you need build from source codes.

git clone https://github.com/ogham/exa.git
cd exa.git
cargo build --release
cp exa ~/.cargo/bin/
Enter fullscreen mode Exit fullscreen mode

exa --tree --level=2 -l -g --icons

Image description

Why building from source codes?

I tried cargo install exa, but failed compiling. Compiling from source codes solved failure of cargo installation.

Top comments (0)