How to make command run in terminal? Command not found I've installed couchbase on my Macbook and now I'm struggling to import data from the csv file.
If I go to 


  /Applications/Couchbase
  Server.app/Contents/Resources/couchbase-core/bin


where I installed Couchbase - in terminal and run cbtransfer command I have the response "Command not found".

I tried to add this path to the $PATH. No result.

I tried to create a symbolic link and use it. No result.

I spent several hours and started to hate my Mac. Please help.
Since the directory above has a space included, you'll need to enclose the directory in quotes for it to work properly:

PATH=$PATH:"/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin"


In order to load the new PATH after you add the above line to your .bash_profile (you can create this file if necessary. in your home folder), you should either open a new Terminal window, or type:

source ~/.bash_profile


You can check to see if it is correct by typing:

echo $PATH


It should show the directory you've added.

Also, any time an executable is not in the PATH you need to give a proper (absolute or relative) path to the executable in order for it to run. The relative path to the PWD (present working directory) is ./, e.g. ./cbtransfer.

It is possible that your default shell is not BASH, type

echo $SHELL


to check this.

The benefit of adjusting your path in this fashion is that the change will persist across terminal sessions and reboots. You can alternately use an export command to set your path for a current terminal session.