shell就是个脚本解释器集合
.sh就是脚本文件。
可以理解为一个小程序
然后这个小程序还需要解释器,#!指定解释器
- #!/bin/bash
- echo "Hello World !"
或者直接commandline指定
/bin/sh test.sh
/bin/php test.php
shell就是个脚本解释器集合
.sh就是脚本文件。
可以理解为一个小程序
然后这个小程序还需要解释器,#!指定解释器
或者直接commandline指定
/bin/sh test.sh
/bin/php test.php