摘要: 一 执行bash shell的方法:(1)进入shell script所在的目录:cd /root/tmp,执行./test.sh(2)以绝对路径方式执行shell script: /root/tmp/test.sh(3)直接使用bash 或者 sh执行script: cd /root/tmp bash test.sh 或者 sh test.sh 或者 bash /root/tmp/test.sh(4)在现行的shell中执行: . /root/tmp/test.sh 或者 source /root/tmp/test.sh其中,方法(1)(2)需要设定script的执行权限: chmod +x 阅读全文
posted @ 2012-03-24 11:52 google4y 阅读(472) 评论(0) 推荐(0) 编辑
不在家,就在公司,不在公司,就在去公司的路上,無家無根,如風如萍,只有漂