Linux下面如何運行.sh文件
命令行下面:
1.chmod 空格"+x" 空格 你的sh文件名 (+x是一個整體,不要拆開)
2.輸入"./你的sh文件名" 即可執行
舉例:
1 chmod +x helloworld.sh
2 ./helloworld.sh
命令行下面:
1.chmod 空格"+x" 空格 你的sh文件名 (+x是一個整體,不要拆開)
2.輸入"./你的sh文件名" 即可執行
舉例:
1 chmod +x helloworld.sh
2 ./helloworld.sh