~/.bashrc | script what is run when you log in to shell non-interactively (for example via su command) or open a separate shell |
~/.bash_profile | script what is run when you log in to shell interactively way ( login, password) example if you remote connect to ssh. |
