1.创建一个目录 2.进入到该目录,并创建编辑hello.sh 按i编写 #!/bin/bash echo “hello world” 按esc退出编辑 按 :wq保存退出
3.设置执行权限
4.三种执行方式