4 thoughts on “Difference between .bash_profile and .bashrc Files”

Is there a system wide .bashrc like file? For interactive logons /etc/profile is sourced, but for non interactive I would really like to have a system wide file for all users without having to resort to making a .bashrc file on . /etc/profile.

Well I want both .bashrc and .bash_profile to be called whether from emacs shell or login. Having profile call rc works fine for login; but if emacs wants rc to call profile, you’d be creating an incredible infinite loop, right?