a. /etc/profile 
b. /etc/paths 
c. ~/.bash_profile 
d. ~/.bash_login 
e. ~/.profile 
f. ~/.bashrc 

其中a和b是系统级别的,系统启动就会加载,其余是用户接别的。
c,d,e按照从前往后的顺序读取,如果c文件存在,则后面的几个文件就会被忽略不读了,以此类推。
~/.bashrc没有上述规则,它是bash shell打开的时候载入的。

相关文章:

  • 2021-06-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-03
  • 2021-07-14
  • 2022-02-08
  • 2021-07-20
  • 2022-01-24
  • 2021-11-20
相关资源
相似解决方案