用户变量和环境变量路径

来源:互联网 发布:手机伴奏消音软件 编辑:程序博客网 时间:2024/05/18 01:40

Ubuntu 

用户变量、环境变量位置   ~/.bashrc


系统变量位置:/etc/profile

打开.bashrc配置环境变量

可在/etc/profile或自己的~/.bashrc中利用alias设置指令的别名。



修改完变量之后,要source /etc/bashrc  或者source ~/.bashrc使其生效。

MAC 

~/.bash_profile



原创粉丝点击