码迷,mamicode.com
首页 > 系统相关 > 详细

Linux中添加快捷

时间:2017-11-02 13:09:56      阅读:201      评论:0      收藏:0      [点我收藏+]

标签:panel   log   linu   dsl   profile   添加   tail   etc   操作   

执行操作比较快捷:

1.R3 CGP平台下OMU系统中:

Linux 版本:2.6.16.60-0.21-bigsmp

vi /etc/profile

2.R2 Linux版本2.6.5-7.244-smp

vi /root/.profile

 

alias cdbin="cd /opt/hlr/hdu/bin"

alias cdlog="cd /opt/hlr/hdu/log"

alias dslog="cd /opt/hlr/hdu/ds/log"

alias config="cd /opt/hlr/hdu/config"

alias rmlog="rm -r $HDU_HOME/log/* $DS_HOME/log/*"

 

编辑后,退出用户,重新登录,使全局变量生效。

登录后执行cdbin命令,就会相当于 执行了cd /opt/hlr/hdu/bin命令

Linux中添加快捷

标签:panel   log   linu   dsl   profile   添加   tail   etc   操作   

原文地址:http://www.cnblogs.com/qiaoyanlin/p/7771569.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!