/.bashrc与/.bash_profile区别

  • /.bashrc

    .bashrc is executed for interactive non-login shells.

    When you are already logged into your machine and open a new terminal window then .bashrc is executed before the window command prompt.

    .bashrc is also run when you start a new bash instance by typing /bin/bash in a terminal.

  • /.bash_profile

    .bash_profile is executed for login shells.

  • References

  1. What is the difference between .bash_profile and .bashrc?

猜你喜欢

转载自blog.csdn.net/The_Time_Runner/article/details/107290357