alias

Check

Check which aliases already exist using...

alias

Example Usage

Aliases can be useful in a UNIX/Linux shell as shortcuts to common commands.

For example, on an Oracle database server you may be running multiple instances. Aliases can make it much easier to switch between environments...

alias ORCL1='. /home/oracle/.bash_profile.ORCL1'
alias ORCL2='. /home/oracle/.bash_profile.ORCL2'
alias ORCL3='. /home/oracle/.bash_profile.ORCL3'
alias ORCL4='. /home/oracle/.bash_profile.ORCL4'

When you want to switch to the ORCL3 environment you can now just use one word instead of the full command...

ORCL3

In a Linux environment you may find it useful to set these aliases in .bashrc