问题
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?
回答1:
/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.
来源:https://stackoverflow.com/questions/44351776/where-should-i-cp-oc-binary-to-on-macos