Linux 使用alias 自定义快捷命令

 bin/oozie-setup.sh sharelib create -fs hdfs://hadoop102:8020 -locallib oozie-sharelib-4.0.0-cdh5.3.6-yarn.tar.gz
 
  
 alias  "oozie"="/opt/modules/oozie-4.0.0-cdh5.3.6/bin/oozie-setup.sh sharelib create -fs hdfs://Hadoop:8020 -locallib oozie-sharelib-4.0.0-cdh5.3.6-yarn.tar.gz"
 
 类似这样的自定义命令
  alias  "ooziestart"="/opt/modules/oozie-4.0.0-cdh5.3.6/bin/oozied.sh start"
  alias  "ooziestop"="/opt/modules/oozie-4.0.0-cdh5.3.6/bin/oozied.sh stop"
 

cat   /etc/bashrc

vi    /etc/bashrc

你可能感兴趣的:(linux,问题总结)