.bash_profile 开机自动加载,比如java的环境变量放在里面

.bashrc打开shell或终端就会加载该文件,比如起的别名或快捷方式放里面。alias设置就在其中。

还有一个.profile设置全局变量。

以上设置完之后,均可使用source命令立即生效:

source .bash_profile 

source .bashrc

相关文章:

  • 2022-03-07
  • 2022-02-24
  • 2021-08-30
  • 2021-11-14
  • 2022-01-29
  • 2022-01-17
  • 2022-01-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
  • 2022-01-21
  • 2021-07-31
  • 2022-02-27
相关资源
相似解决方案