1鼓黔、使用vi或vim編輯文件test.sh,內(nèi)容如下:
#!/bin/bash
echo "Hello World!"
2不见、使test.sh文件具有可執(zhí)行權(quán)限
chmod?? +x test.sh
3澳化、執(zhí)行test.sh文件
方法1:./test.sh
方法2:/bin/sh?? test.sh
1鼓黔、使用vi或vim編輯文件test.sh,內(nèi)容如下:
#!/bin/bash
echo "Hello World!"
2不见、使test.sh文件具有可執(zhí)行權(quán)限
chmod?? +x test.sh
3澳化、執(zhí)行test.sh文件
方法1:./test.sh
方法2:/bin/sh?? test.sh