Linux Command alias, unalias
1. Functions of the linux alias: 1. Simplified special long commands and parameters 2. Added default options for some commands to improve security.
2. Use alias
[Www @ work sh] $ alias lm = 'LS-l | more '[www @ work sh] $
The lm command will be added and the ls-l | more command will be executed. Add the-I parameter to the rm command to prevent accidental file deletion.
$ Alias rm = 'rm-I'
View All aliases
Www @ work sh] $ aliasalias ll = 'LS-l -- color = tty 'Alias lm = 'LS-l | more 'Alias ls = 'ls -- color = tty 'alias rm = 'rm-I 'alias vi = 'vim' alias which = 'Alias |/usr/bin/which -- tty-only -- read-alias -- show-dot -- show-tilde '[www @ work sh] $
Exiting the current session will expire. To save permanently, you can write ~ /. Bashrc.
3. Cancel alias unalias remove alias use unalias.
[Www @ work sh] $ unalias lm
Address: http://blog.csdn.net/yonggang7/article/details/40709395