摘要: Mac 终端执行 shell 脚本 样本:test.sh #!/bin/zsh echo test 创建的文件默认是没有执行权限的 ls -l test.sh => -rw-r--r-- 1 panminxiang staff 22 6 15 19:18 test.sh 添加执行权限 chmod u 阅读全文
posted @ 2024-06-15 20:58 Tinypan 阅读(4) 评论(0) 推荐(0) 编辑
摘要: Mac 修改默认 shell Mac 自 macOS Catalina 开始默认 shell 由原来的 Bash 改为 zsh 查看 Mac OS 系统版本: https://support.apple.com/zh-cn/109033 查看系统自带所有 shell $ cat /etc/shell 阅读全文
posted @ 2024-06-15 13:43 Tinypan 阅读(3) 评论(0) 推荐(0) 编辑