Search code examples
macospathopenshiftmacos-sierra

Where should I cp oc binary to on MacOS?


In this documentation it says

unpack the archive and move the oc binary to a directory on your PATH

I tried echo $PATH and it returns:

bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin

Clearly there are multiple path here, which one should I move cp oc binary to?


Solution

  • /usr/local/bin would be the usual choice for user or third-party executables. That way it won't get wiped out when you update the OS.

    See also: Where do you keep your own scripts on OSX? - the question is about scripts rather than binaries, but the same logic applies.