新增环境变量
export http_proxy=http://127.0.0.1:8123/
删除环境变量
unset http_proxy
查看环境变量
env
export MAVEN_HOME=/usr/local/apache-maven-3.6.0
export PATH=$PATH:$MAVEN_HOME
export OSG_HOME=/Users/new/Downloads/osg-osgEarth
export OSG_FILE_PATH=$OSG_HOME/data
export OSG_LIBRARY_PATH=$OSG_HOME/lib/osgPlugins-3.6.4
export PATH=$PATH:$OSG_HOME/lib
Mac系统下的环境变量:
a. /etc/profile
b. /etc/paths
c. ~/.bash_profile
d. ~/.bash_login
e. ~/.profile
f. ~/.bashrc
其中a和b是系统级别
的,系统启动就会加载,其余是用户接别的。c,d,e按照从前往后的顺序读取
,如果c文件存在,则后面的几个文件就会被忽略不读了
,以此类推。~/.bashrc没有上述规则&#