利用alias命令别名对常用运维命令的调用
在~目录下,修改.bashrc,对进入ezsonar、对应log目录的命令进行别名
[root@localhost ~]# vi .bashrc
# .bashrc
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias l='ls -al'
alias ez='cd /usr/local/ezsonar/'
alias ezl='cd /var/log/ezsonar/'修改完之后,加载.bashrc脚本
[root@EZSonar ~]# source .bashrc