Understanding the distinction between your
shell types, profile files and shell rc files is important because when you apply modifications to your system you need to know where to set variables in order to make sure that they can be initialized as expected.
Let's give a quick answer for this topic which covers the exact difference between the two shells.
When you login your system and see the command line prompt, it's a login shell, and it executes these files in order:
<ul> /etc/profile
~/.bash_profile