Alternatives to Some Linux Commands

Published:
Updated:
1 minute read

Some linux commands and their alternatives that I use. For most of them, it’s easier to create aliases.

  1. dust instead of du

See how to install it, here.

It’s very informative! image

  1. tldr instead of man

The purpose of TLDR (Too Long, Didn’t Read!) is to show examples of using various commands. On Ubuntu it will be installed with sudo apt install tldr

image

  1. bat or batcat instead of cat

See here to find how to install it.

image

  1. exa instead of ls

Check out its website. exa is especially useful when you want to see the directory tree.

image

  1. duf instead of df

Check here to find more about duf.

image

  1. colordiff instead of diff

  2. htop instead of top, (edit: actually btop instead of top!)

Check here for more information on how to set it up. It looks cool!

image

  1. ack instead of grep
  2. cloc instead of wc
  3. Using xclip instead of copy and paste.
# installation on Ubuntu
sudo apt install xclip

# Optional aliases in the profile/bashrc
alias "c=xclip" # copy to X clipboard
alias "cs=xclip -selection clipboard" # copy to system wide clipboard
alias "v=xclip -o" # output copied content (paste)
alias "vs=xclip -o -selection clipboard" # paste from system wide clipboard

# Some usages (notice the backticks)
# Terminal 1
echo pwd | c
# Terminal 2
cd `v`