美文网首页
Ubuntu 环境变量加载顺序

Ubuntu 环境变量加载顺序

作者: 冰风47 | 来源:发表于2020-08-25 14:17 被阅读0次
    # 系统级
    /etc/profile
      /etc/bash.bashrc
    /etc/environment
    
    # 用户级
    ~/.profile
      ~/.bashrc
    ~/.bash_profile
    ~./bash_login
    ~/.bash_logout
    ~/.pam_environment
    
     # 设定顺序:
    /etc/profile -> (~/.bash_profile | ~/.bash_login | ~/.profile) -> ~/.bashrc-> /etc/bashrc -> ~/.bash_logout 
    
    # 修改变量后要加:(xxxx为设定的配置文件)
    source xxxx
    

    相关文章

      网友评论

          本文标题:Ubuntu 环境变量加载顺序

          本文链接:https://www.haomeiwen.com/subject/nffzjktx.html