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。

相关推荐
MicJordan12 小时前
macos安装Claude提示command not found
macos
坠金12 小时前
mac电脑网络卡顿解决方法
macos
写点啥呢13 小时前
MacOS远程桌面报错0x207解决方法
macos
CrankZ15 小时前
幕译 1.7--本地字幕生成与翻译--支持macOS,Windows
macos·whisper
ashcn200115 小时前
autohotkey模拟mac中英文切换和ESC切成英文(适配vim)
macos·autohotkey
大猫熊猫15 小时前
【ios】xcode运行项目时报错 Showing All Errors Only Framework ‘Pods_Runner‘ not found
macos·ios·xcode
weixin_462446231 天前
【原创实践】mac手动安装 wget
macos·wget
FreeBuf_1 天前
认证噩梦:新型MacSync窃密木马绕过Gatekeeper劫持Mac设备
macos
绝世唐门三哥1 天前
Mac 免费 GIF 录制软件全攻略:下载、安装与使用指南
macos·gif
雪域迷影1 天前
macOS系统上或首次使用Python的urllib模块时出现 ssl.SSLCertVerificationError 错误
python·macos·ssl