Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cant open and edit .bash_profile on my Mac

I want to build an app with Eclipse and PhoneGap, and it is required to edit the .bash_profile file which is located under the Users folder. But I can't edit it (I can't open the file). Here are the instructions.

I can't open it when I navigate with the Finder to that file, and I can't open it when I use the command line

open ~/.bash_profile

I created the file with my mouse (right click, new file, and changed the name to .bash_profile ... it is now a shell script).

What am I doing wrong?

like image 921
John Brunner Avatar asked Oct 21 '25 16:10

John Brunner


2 Answers

You are not doing anything wrong, files starting with a dot (.) are hidden, simply edit the file, and everything is okay.

So you can for example do nano ~/.bash_profile or vim ~/.bash_profile or whichever favorite editor you are using.

like image 151
DusteD Avatar answered Oct 23 '25 06:10

DusteD


You can see your ~/.bash_profile if you start the Terminal application and type:

ls -a

into the Terminal window, since the "-a" option shows even hidden files.

like image 36
Mark Setchell Avatar answered Oct 23 '25 07:10

Mark Setchell



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!