写脚本

建立文件run:vi run

写入一下三行

#/bin/bash

cd helloworld

./helloworld

保存退出:wq

修改脚本权限:chmod +x run

运行脚本:./run

你可能感兴趣的:(写脚本)