Bash – Difference Between ~/.profile and ~/.bash_profile

bashprofile

What is the difference between ~/.profile and ~/.bash_profile?

Best Answer

The .profile was the original profile configuration for the Bourne shell (a.k.a., sh). bash, being a Bourne compatible shell will read and use it. The .bash_profile on the other hand is only read by bash. It is intended for commands that are incompatible with the standard Bourne shell.

Related Question