Ubuntu
用户变量、环境变量位置 ~/.bashrc
系统变量位置:/etc/profile
打开.bashrc配置环境变量
可在/etc/profile或自己的~/.bashrc中利用alias设置指令的别名。
修改完变量之后,要source /etc/bashrc 或者source ~/.bashrc使其生效。
MAC
~/.bash_profile
Ubuntu
用户变量、环境变量位置 ~/.bashrc
系统变量位置:/etc/profile
打开.bashrc配置环境变量
可在/etc/profile或自己的~/.bashrc中利用alias设置指令的别名。
修改完变量之后,要source /etc/bashrc 或者source ~/.bashrc使其生效。
MAC
~/.bash_profile