如果當(dāng)前腳本未有執(zhí)行權(quán)限贷屎,則需要先加上執(zhí)行權(quán)限: chmod +x test.sh 執(zhí)行方式有兩種: ./test.sh /bin/sh test.sh