1

guys, I have a question I try to understand the difference between login and no login shell and .bashrc and .bash_profile

I put PATH in .bash_profile it should be present only in a login shell but I find it in no login shell also and I didn't specify it in .bashrc

from what I understand Only .bashrc is run on non-login shells, while only .bash_profile is run on login shells.