/usr/local/bin is not found on my mac computer. I already ran
defaults write com.apple.Finder AppleShowAllFiles TRUE
and still not /usr/local/bin. I am trying to install ssh-copy-id by following https://github.com/beautifulcode/ssh-copy-id-for-OSX but it fails when trying to move ssh-copy-id to /usr/local/bin. Any ideas on how to fix this?
Why is usr not visible on Mac? The reason macOS hides folders like usr and bin is the same reason plumbing and wires are hidden in your house. They are not pretty, and something can go very wrong if you modify them in a way they are not supposed to be modified.
/usr/local/bin contains binaries of the third-party apps we install. Any local executable that didn't come with the Linux install may get it's place here. Same is the case with /sbin which contains the binaries for root users.
If your Mac correctly interprets the BIN file extension and recognizes the file as MacBinary, it will be identified accordingly in list-view Finder windows. If your Mac doesn't immediately decompress a BIN file, right-click on the file and choose "Open With." Select "Archive Utility. app" from the list of options.
You should be able to create it yourself by executing sudo mkdir -p -m 775 /usr/local/bin
from the terminal. If /usr/local/bin
is not in your $PATH
environmental variable, you can update it by appending export PATH=$PATH:/usr/local/bin
to the file $HOME/.bash_profile
. Close your current terminal, and open a new one for testing.
UPDATE: If you have brew installed, you can just run brew install ssh-copy-id
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With