[root@localhost ~]# alias vvg='ls -lha' ##增加命令vvg ,vvg的命令内容为 'ls -lha'
[root@localhost ~]# vvg ##使用命令
总用量 28K
dr-xr-x---. 4 root root 159 1月 21 21:16 .
dr-xr-xr-x. 17 root root 224 1月 22 02:52 ..
-rw-------. 1 root root 1.4K 1月 20 07:08 anaconda-ks.cfg
-rw-------. 1 root root 535 1月 23 05:27 .bash_history
-rw-r--r--. 1 root root 18 12月 29 2013 .bash_logout
-rw-r--r--. 1 root root 176 12月 29 2013 .bash_profile
-rw-r--r--. 1 root root 176 12月 29 2013 .bashrc
-rw-r--r--. 1 root root 100 12月 29 2013 .cshrc
drwx------. 2 root root 6 1月 21 21:09 .shh
drwx------. 2 root root 29 1月 22 00:17 .ssh
-rw-r--r--. 1 root root 129 12月 29 2013 .tcshrc
[root@localhost ~]# which vvg 查看vvg命令
alias vvg='ls -lha'
/usr/bin/ls