A Bash alias is a shortcut that helps you avoid typing a long command sequence. It can help you save a lot of keystrokes over the day and can also help you avoid remembering complex combinations of commands and options.
Bash aliases are defined in your:
$HOME/.bashrc
or
$HOME/bash_aliases (which must be loaded by $HOME/.bashrc).
Let’s look at an example below, where you can see three aliases defined in the snippet.
alias ll='ls -l'alias lt='ls -ltr'alias kc='kubectl'