1、在家目录建立 .bash_profile 文件。

2、在该文件添加:

export PATH=/my/path/:$PATH

3、解释,/my/path/为你要添加的目录,为什么不在.bashrc中修改?因为根据规则,.bashrc在.bash_profile中调用,实际系统指执行.bash_profile

相关文章:

  • 2022-01-01
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
  • 2021-12-15
猜你喜欢
  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2021-12-15
相关资源
相似解决方案