Thanks for using this guide, this part gives more useful tools and configurations.
There are some packages that I use in my daily life, you can install them if you want.
Bat improves the cat
command, it adds syntax highlighting and Git integration.
sudo apt install bat -y
You can add theses aliases in your ~/.zshrc
file :
# bat
alias cat='batcat --style="header" --paging=never'
alias catn='batcat --pager "less -RF"'
alias batn='batcat --pager "less -RF"'
Fzf is a command-line fuzzy finder, it's a very useful tool to find files, folders, and more.
sudo apt install fzf -y
You can add theses aliases in your ~/.zshrc
file :
# fzf
alias f='fzf'
alias ff='fzf -m'
alias fff='fzf -m --preview "batcat --style=header --color=always --line-range :500 {}"'
Warning
You need to install Bat to use the fff
alias.
btop is a resource monitor, it's a very useful tool to monitor your system, it's like htop but with a better UI and more features.
sudo apt install btop -y
You can add theses aliases in your ~/.zshrc
file :
# btop
alias top="btop --utf-force"
alias btop="btop --utf-force"
alias htop="btop --utf-force"
eza is a modern replacement for ls
, it adds more features and a better UI.
# ubuntu & debian
sudo mkdir -p /etc/apt/keyrings
wget -qO- https://raw.githubusercontent.com/eza-community/eza/main/deb.asc | sudo gpg --dearmor -o /etc/apt/keyrings/gierens.gpg
echo "deb [signed-by=/etc/apt/keyrings/gierens.gpg] http://deb.gierens.de stable main" | sudo tee /etc/apt/sources.list.d/gierens.list
sudo chmod 644 /etc/apt/keyrings/gierens.gpg /etc/apt/sources.list.d/gierens.list
sudo apt update && sudo apt install -y gpg eza
You can add theses aliases in your ~/.zshrc
file :
# eza
alias ls='eza -a --icons' # ls
alias l='eza -lbF --git' # list, size, type, git
alias ll="eza -1a --icons" # list, 1 per line
alias lat="eza -lagh --tree --icons" # list with info and tree
duf is a modern replacement for df -h
, it adds more features and a better UI.
sudo apt install duf -y
You can add theses aliases in your ~/.zshrc
file :
# duf
alias df='duf' # df
alias duf='duf -h -a --si' # duf
Note
You might need to do unalias duf
before using the duf
alias since it's already an alias by default.
Nala is a modern replacement for apt, it adds more features and a better UI.
Note
Outside of pretty formatting, the number 1 reason to use Nala over apt is parallel downloads.
sudo apt install nala -y
Good video about nala.
You can add theses aliases in your ~/.zshrc
file :
# cd
alias ..='cd ..'
alias ...='cd ../..'
# update
alias update='sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y'
# if you use nala
alias update='nala update && nala upgrade -y'
# network
alias ip='curl -s https://ipinfo.io/ip'
alias localip='ipconfig getifaddr en0'
# zsh
alias zshrc='nano ~/.zshrc'
# git
alias gs='git status'
alias ga='git add .'
# wheather
alias wheather='curl wttr.in'
# packages manager
alias apt='sudo apt'
alias apti='sudo apt install'
alias aptr='sudo apt remove'
alias p='pnpm'
alias pi='pnpm install'
alias n='npm'
alias ni='npm install'
- Linux-Bash-Commands - A list of useful Linux Bash commands.
- awesome-zsh-plugins - A collection of Zsh frameworks, plugins & themes.
- cheat.sh - The only cheat sheet you need.
- awesome-console-services - List of useful console services. (inactive but still useful)
Thank you for reading this part of the guide, I hope you found it useful and feel free to contribute to this guide by creating a pull request. 😄 👍