Ravi Sir's Cards › AWS
~/.bashrc vs ~/.bash_profile
This comparison card contrasts ~/.bashrc and ~/.bash_profile. ~/.bashrc is described as every interactive shell. ~/.bash_profile is described as login shells. The card pairs ~/.bashrc with new terminal tabs, and ~/.bash_profile with sSH logins.
Read card text
What this card says
Runs for
~/.bashrc
Every interactive shell.
~/.bash_profile
Login shells.
Key points
Aliases, prompt.
Should source bashrc.
Example
source ~/.bashrc
Use when
New terminal tabs.
SSH logins.