Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to put a mysql path into the bash profile of my macbook pro. How do I access the bash file and then make it visible in the finder so I can open it with a text editor and put in the path?

share|improve this question

You can set your Finder to show all hidden files by running these commands in Terminal:

defaults write com.apple.Finder AppleShowAllFiles TRUE
killall Finder

Alternately, you can just edit files using the open command directly:

open -a TextEdit .bash_profile
share|improve this answer

You cannot selectively make .bash_profile visible to the Finder. You can either make all "invisible" files visible using defaults write com.apple.Finder AppleShowAllFiles TRUE or not. (I recommend not.)

You can edit .bashrc or .bash_profile from the Terminal using Emacs or VI(M). Or you can create a file named BASHRC (or anything else) and then rename it to .bashrc or .bash_profile using the terminal.

Or you can launch TextEdit on the file using

open -a TextEdit .bash_profile
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.