Where is my .bash_profile located? (Mac OS 10.10.5)

You can edit bash profile with vi ~/.bash_profile make sure the PATH was not added in ~/.bashrc or to /etc/profile

To remove the PATH you can either remove it from the file where it was added, or simply re export the ones you need export PATH=/here/is/one:/here/is/another


  1. Navigate to your user folder in Finder: /Users/username/

  2. Make hidden files visible (the shortcut is ShiftCmd.)

  3. Right click .bash_profile and Open With... your text editor of choice.

  4. ShiftCmd. one more time in Finder to make hidden files invisible again. (Not required, just a good idea.)