CentOS in the alias command to explain
Alias command
Function Description: We are in the management of the system must have some we often fixed use, but also very long command. Then we can give these long series of commands an alias. This long list of commands can then be replaced directly with aliases. There are already some default command aliases in the system. Can be viewed by the alias. You can also view the ~/.bash_profile in the home directory, which is a user's personal alias. If you want to define a global alias, you can write the definition to the/ETC/BASHRC file. Aliases that go through the alias are automatically cleared after the system restarts. After the modification, the source will not be effective.
Syntax: alias [alias] = [directive name]
Cancel alias: Unalias [alias]
Use instance:
(1) Alias of system default
[Root@liwentong test4]# Alias
Alias cp= ' Cp-i '
Alias l.= ' ls-d. *--color=tty '
Alias ll= ' Ls-l--color=tty '
Alias ls= ' ls--color=tty '
Alias mv= ' Mv-i '
Alias rm= ' Rm-i '
Alias Which= ' Alias | /usr/bin/which--tty-only--read-alias--show-dot--show-til
Note: You cannot have spaces on either side of an equal sign when you define an alias.