返回顶部

脚本启动的几种方法

运行脚本方法

 

 

1.# bash  /root/datetime.sh

  i love Linux

  2020-05-30 13:54:02

 

2. # cat /root/datetime.sh |bash

  i love Linux

  2020-05-30 13:54:35

 

 

3.#chmod +x /root/datetime.sh   

 

  绝对路径 /root/datetime.sh

 

 

  相对路径cd /datetime.sh 

       ./datetime.sh 

posted @ 2020-05-31 13:44  九尾cat  阅读(1076)  评论(0编辑  收藏  举报