Difference Between /etc/profile, ~/.bash_profile, ~/.profile, ~/.bashrc, etc
The bash or any other shell uses multiple profiles, also known as shell configuration files, like “/etc/profile“, “~/.bash_profile“, “~/.profile“, “~/.bash_login“, “~/.bashrc“, “~/.bash_history“, and “~/.bash_logout” to configure the user’s interactive login or non-login shell. Files Description /etc/profile It stores the variables, aliases, functions, etc. that are