Mac 创建shell脚本 云高溪远 2023-11-08 88 阅读1分钟 终端进入需要创建脚本的目录,操作如下命令: 创建一个名为test的脚本: touch test.sh 赋予权限: chmod +x test.sh 执行脚本: ./test.sh