备忘。

原文地址:http://woshixushigang.iteye.com/blog/1545709

当你的home下面有.bash_profile或者.bash_login的时候,会忽略掉.profile.
稍微调查了一下,做个笔记
主要有一下几种方式
/etc/profile 
~/.bash_profile 
~/.bash_login 
~/.profile 
~/.bashrc 
~/.bash_logout

/etc/profile
登录的时候读入,默认的设定文件.
~/.bash_profile
登录之后在/etc/profile载入之后载入,十分重要的配置文件
~/.bash_login
登录之后如果~/.bash_profile不存在的话,载入这个文件
~/.profile
登录之后~/.bash_login不存在的话,才载入这个文件
~/.bashrc
bash shell打开的时候载入
etc下的配置是针对系统,~下的主要是针对用户

 

相关文章:

  • 2021-12-15
  • 2022-01-20
  • 2021-10-18
  • 2021-09-03
  • 2021-09-07
  • 2021-08-10
  • 2022-12-23
猜你喜欢
  • 2021-12-28
  • 2021-11-21
  • 2021-08-02
  • 2021-10-27
  • 2022-12-23
  • 2021-09-22
相关资源
相似解决方案