Create alias in Linux/Unix/Aix Systems

Aliases can help in issuing complex or long commands by creating short aliases for them.

Aliases can be created for the session or persistent ones by adding them to .profile or .bashrc file depending on what flavor of Unix you are using.

Example:

alias l=’l -al’#this will create alias for list command with couple of paramter
alias alert=’cd /u02/diag/rdbms/prod/prod1/trace’ #this creates alias for alert log location for oracle

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>