I found a great alternative to ls command- exa. It also gives different colours to different file types.
It is very easy to install it, but I am posting a shell script to do it (This saves one google search for you ).
(The main reason of this post is to bring this great command in your notice.)
Install script:
Code: Select all
#!/bin/bash
EXA_VERSION=$(curl -s "https://api.github.com/repos/ogham/exa/releases/latest" | grep -Po '"tag_name": "v\K[0-9.]+')
curl -Lo exa.zip "https://github.com/ogham/exa/releases/latest/download/exa-linux-x86_64-v${EXA_VERSION}.zip"
unzip -q exa.zip bin/exa -d /usr/local