Aliases are a great way to run a command or script from the command window without having to either remember, or type everything in each time. This example is for the bash shell…
Open the file ~/.bashrc for editing:
Add a new alias at the bottom of the file, for example:
alias connectServer='ssh -lusername 192.168.0.50'
Then install the .bashrc to make it available:
Now you can just type the name of the alias in the command window and it will perform the action defined in the .bashrc file: