Alternatives to Some Linux Commands
Some linux commands and their alternatives that I use. For most of them, it’s easier to create aliases.
dust
instead ofdu
See how to install it, here.
It’s very informative!
tldr
instead ofman
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
bat
orbatcat
instead ofcat
See here to find how to install it.
exa
instead ofls
Check out its website. exa
is especially useful when you want to see the directory tree.
duf
instead ofdf
Check here to find more about duf
.
colordiff
instead ofdiff
htop
instead oftop
, (edit: actuallybtop
instead oftop
!)
Check here for more information on how to set it up. It looks cool!
ack
instead ofgrep
cloc
instead ofwc
- 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`