Difference between .bash_profile and .bashrc

.bash_profile and .bashrc are two bash shell config files. Where .bash_profile is a login shell config file, and .bashrc is a non-login shell file. By login-shell , we mean a shell file used during console login,  (ctrl+alt+F7)  ,which is .bash_profile file. By non-login shell we mean shell used during terminal login (XTERM). Both config files … More Difference between .bash_profile and .bashrc