How to configure alias in Linux
The alias command is used to set the aliases of the directives. We can use this command to simplify some of the longer commands. When using alias, the user must use the single quote ' ' to cause the original command to be used to prevent special characters from causing an error.
The alias command is only limited to the login operation. To be able to use these command aliases every time you log in, you can store the alias command in Bash's initialization file,/ETC/BASHRC.
Grammar
Alias (option) (parameter)
Options:
-P: Print command aliases that have been set
Parameters:
Command alias settings: Define command aliases, format "command aliases = ' actual commands '"
Instance
The basic way to use alias:
Alias new command = ' original command-options/Parameters '
For example:
Alias "Less=less-n"
Alias Ll= ' Ls-al '
Remove an alias using the Unalias command
Unalias LL
This article is from the "Ouyangjun" blog, make sure to keep this source http://ouyangjun.blog.51cto.com/10284323/1704042
How to configure alias in Linux