标签:
1.创建别名
$ alias dms=‘cd Oracle/Middleware/user_projects/domains/7001_costctl/‘ $ dms $ dms $ pwd /home/weblogic/Oracle/Middleware/user_projects/domains/7001_costctl
创建别名只是暂时的,一旦关闭终端设置的别名就失效了,要永久有效得写到~/.bashrc
# echo "alias dms=‘cd Oracle/Middleware/user_projects/domains/7001_costctl/‘" >> ~/.bashrc
# source ~/.bashrc
2.取消别名
$ unalias dms
3.利用\将别名进行转义
$ alias vi=‘vim‘ $ vi startWebLogic.sh
$ \vi startWebLogic.sh
标签:
原文地址:http://www.cnblogs.com/zydev/p/5725824.html