-
Open user .bashrc
vim ~/.bashrc -
Go to the end of the file
- Using vim, hitting G or shift + G
-
Add the alias
alias custom-command='execute other command' -
Save the edited file
- Using vim, press Escape then type the characters below.
:wq -
Install the new .bashrc cotent
source ~/.bashrc -
Reference: http://www.hostingadvice.com/how-to/set-command-aliases-linuxubuntudebian/