How to create a permanent “alias”?

Fol­low three sim­ple steps to cre­ate alias for your com­mand line.

cd
ls -la
vi .bashrc

Append your favorite alias at the bot­tom of the file. Below are some of my favorite aliases.

# alias for git commands

alias gb='git branch'
alias gc='git checkout'
alias gd='git diff'
alias gl='git log --oneline'
alias gs='git status'

You may also like...