Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

/usr/local/bin No such file or directory

Tags:

macos

ssh

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

like image 230
Technic1an Avatar asked Sep 03 '14 22:09

Technic1an


People also ask

Why is there no usr local bin on Mac?

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.

What is usr local bin Linux?

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

How do I unzip a BIN file on Mac?

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.


1 Answers

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.

like image 114
ivan.sim Avatar answered Oct 19 '22 02:10

ivan.sim