DEV Community

AliasGuru
AliasGuru

Posted on

Linux Alias Cheat Sheet

Create custom command shortcuts and boost your terminal productivity with intelligent alias suggestions. Newer been so easy to remember all the commands.

Take a peek: scannec.com

Like:

alias rm='rm -i' # Ask for confirmation before deletion
alias cp='cp -iv' # Ask for confirmation and show progress
alias mv='mv -iv' # Safer move/rename operations

or something little harder...

# Use different commands based on the operating system
if [[ "$OSTYPE" == "darwin"* ]]; then
# macOS
alias ls='ls -G'
alias ll='ls -la'
alias top='top -o cpu'
else
# Linux
alias ls='ls --color=auto'
alias ll='ls -la --color=auto'
alias top='top -o %CPU'
fi

100% Free and Easy: scannec.com

Top comments (0)