Mac下面通过双击执行shell脚本

  1. 编写shell脚本run.sh
  2. 将run.sh修改为run.command
  3. 执行以下命令给文件赋予可执行权限
    chmod +x run.command

    完成,此时双击run.command文件即可执行shell中的命令,同时会唤起Terminal

猜你喜欢

转载自blog.csdn.net/u010899138/article/details/105969087
今日推荐