系统版本:14.6
查看目前存在的环境变量
printenv
或
env
查看指定的环境变量:
echo $PATH
创建环境变量文件
touch .zshrc
或
touch .bash_profile
.bash_profile 需要运行 source ~/.bash_profile ;
.zshrc 需要运行 source ~/.zshrc
MacOS环境变量查看指南
系统版本:14.6
查看目前存在的环境变量
printenv
或
env
查看指定的环境变量:
echo $PATH
创建环境变量文件
touch .zshrc
或
touch .bash_profile
.bash_profile 需要运行 source ~/.bash_profile ;
.zshrc 需要运行 source ~/.zshrc
4266
1万+

被折叠的 条评论
为什么被折叠?