Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Where is my .bash_profile file located?

I can't locate my .bash_profile file..


For example, if I try to open my ~/.bash_profile is not created yet...



Thanks in advance.

MacBook Pro, Mac OS X (10.7.2)

Posted on Jul 28, 2012 5:21 AM

Reply
Question marked as Best reply

Posted on Jul 28, 2012 5:32 AM

You have to create it, it doesn't exist yet. How you do that is up to you since it is invisible, so even after you do create it you still can't see it. So what you can do is open Terminal.app and say (drag this text into Terminal):


touch .bash_profile


then say:


open -a TextEdit.app .bash_profile


TextEdit will show you a blank page which you can fill in.

6 replies
Question marked as Best reply

Jul 28, 2012 5:32 AM in response to MacbookProf

You have to create it, it doesn't exist yet. How you do that is up to you since it is invisible, so even after you do create it you still can't see it. So what you can do is open Terminal.app and say (drag this text into Terminal):


touch .bash_profile


then say:


open -a TextEdit.app .bash_profile


TextEdit will show you a blank page which you can fill in.

Where is my .bash_profile file located?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.