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

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
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?

/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.

Related

Where is nix.conf located when installed on OSX? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I installed nix on osx using this command:
$ sh <(curl https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume
Following instructions here:
https://hydra.nixos.org/build/119559243/download/1/manual/#sect-macos-installation
I'm trying to build a project that uses the nix shell and it's telling me to edit something in a file called nix.conf. However the project documentation was setup using a linux or nixos distribution so not sure where this file is located on osx. (The docs say to look in /etc/nix/nix.conf, but this file doesn't exist in osx)
/etc/nix/nix.conf may not exist, you need to create it.

How to use sox in OS X [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I downloaded and installed sox using the Mac OS X binary.
I am trying to run it using sox in the terminal but I keep getting command not found.
Make sure its on your PATH if you are calling it as sox. If it's not you have 2 options:
Add the directory it was installed to to your PATH
Give a path to the sox binary as the call instead. For example (I used homebrew to install sox) my binary is at /usr/local/bin/sox so my command would start with that. If you'd like you can also use alias to shorten that.

Why is my "ls -A" displaying current and parent directory (even if should not?) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I'm writing a little bash script.
As written in the reference:
http://linuxcommand.org/man_pages/ls1.html
ls -A
Should not list "./" and "../" directories.
But... on my system (centOS) is still listing it.
Is there some option "always on" I should be take care of before running this script?

Where are the osx commands stored? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I'm writing a mac app (osx 10.9) that accesses the terminal commands using NSTask and I wanted to run some of the commands from my app. Where are the terminal commands (gcc, mkdir,git) stored?
Use which to determine this:
% which gcc
/Applications/Xcode.app/Contents/Developer/usr/bin/gcc
% which mkdir
/bin/mkdir
% which git
/Applications/Xcode.app/Contents/Developer/usr/bin/git
They can be scattered all over the place. You can see where individual commands are by using which
which mv
/bin/mv
Also, you can see what are all the paths that are used to search for a given command with the following:
echo $PATH

cp hosts backup/hosts.bak did not work [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I was reading a book on UNIX when I came across this question.
The command
cp hosts backup/hosts.bak
did not work even though all files exist. Name three possible reasons.
I could think of one only and that too I am not sure about.
According to me one reason can be the current directory is not writable by the user.
Please help me out to know the actual reasons.
backup/ is not writeable by the user
hosts is not readable by the user
the disk where backup/ is located is full
hosts is a directory, not a file

Resources