Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 214 Bytes

execute.md

File metadata and controls

8 lines (7 loc) · 214 Bytes

1、作为可执行程序

chmod +x ./test.sh #使脚本具有执行权限

./test.sh #执行脚本

注:zsh: permission denied: ./test.sh

2、作为解释器参数

/bin/sh test.sh

/bin/php test.php