How to add an alias to .bash_profile

To add an alias (shortcut) to your terminal use:

alias your_terminal_shortcut='the command the alias should do'

 

Example:

alias ll='ls -la'

 
To update the current terminal window type source followed by your ‘profile file’:

$ source ~/.bash_profile