Alex Rivera | Logout

Difference between .profile and .bash_profile on Snow Leopard

Asked 2011-07-19T17:18:37.117
68

I am going to set the path for mySQl on my computer (I'm running Snow Leopard) but I see different instructions online.

Some say to change the .profile file and some say to change the .bash_profile file. What is the difference?

Edit
Report

1 Answer

89

.profile works with sh or bash. However .bash_profile is bash-specific and will override .profile if present.

answered 2011-07-19T17:25:32.143

Your Answer