Where should I cp oc binary to on MacOS? [closed]

风格不统一 提交于 2020-08-10 22:52:26

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!