You can create command shortcuts using aliases. Command aliases help you minimize the number of keystrokes necessary to execute long commands. The root user enters command alias definitions to be used system-wide.
When you create a command alias, you must assign a name to the alias and specify the command you want to associate with the name. You can view a previously created alias if you forget which commands accompany the alias name. You can also view a list of all command aliases you create.
To create a command alias
1. At the command line, type,
alias <name>="<command>"
2. Press ENTER.
Note
Make sure to enclose the command in quotes.
To view a command alias
1. At the command line, type,
alias <name>
2. Press ENTER.
Note
Do not include the brackets in the command line text. For information about notation conventions for commands, see "Using notation conventions for Linux commands."
To view all aliases
1. At the command line, type,
alias
2. Press ENTER.