1、输入下面内容,保存命名为hello.sh
#!/bin/sh
echo “hello,world"
2、执行下面命令,添加可执行属性
chmod +x hello.sh
3、输入下面命令,执行脚本
./hello.sh