Mac环境变量问题

查询环境变量
bash 复制代码
echo $PATH
查询当前使用的Shell,这里注意SHELL需要大写
bash 复制代码
echo $SHELL

>>>如果输出的是/bin/zsh,说明使用的是zsh。zsh读取的个人配置文件是~/.zshrc (mac10.15.x 后对应的是~/.zprofile)

>>>如果输出的是/bin/bash,说明使用的是bash。bash读取的个人配置文件是~/.bash_profile

另外,还有两个系统级的环境 /etc/profile 和 /etc/paths。

相关推荐
Sheffi661 小时前
iOS 触摸事件完整传递链路:Hit-Test 全流程深度解析
macos·ios·cocoa
ChineHe4 小时前
Gin框架入门篇002_第一个Gin服务
macos·xcode·gin
Roc.Chang4 小时前
解决 macOS 26.1 The application “xxxx” can’t be opened. 问题
macos
赶路人儿4 小时前
从intel mac迁移到M3后软件的兼容性
macos
颜淡慕潇5 小时前
Podman 从0到1使用教程(macOS 系统):安装 MySQL、Redis 容器
mysql·macos·podman
Niap.pr5 小时前
Macos下访问树莓派系统(ext4)
macos
芳草萋萋鹦鹉洲哦5 小时前
【mac】解决Apple无法验证“fsevents.node”是否包含可能危害Mac安全或泄漏隐私的恶意软件
安全·macos
aini_lovee16 小时前
寻找 MAC 协议的 MATLAB 仿真
开发语言·macos·matlab
2501_915106321 天前
最新版本iOS系统设备管理功能全面指南
android·macos·ios·小程序·uni-app·cocoa·iphone
2501_915918411 天前
iOS 性能监控 运行时指标与系统行为的多工具协同方案
android·macos·ios·小程序·uni-app·cocoa·iphone