Create a symbolic link for sublime text in Mac OS X

sublimetextsymlinkterminal

I have the newest Mac OS 10.12.3. With the new rootless system Apple has implemented, I can't create a symbolic link using ln under /usr/bin. My goal is so that I can use subl in terminal. How can I do this?

Best Answer

The default directory for third-party executables in macOS is /usr/local/bin. Since this directory already is in the PATH you don't have to modify anything except sudo linking the executable to this dir.

If the directory doesn't exist, create it with sudo mkdir /usr/local/bin. If you plan to install brew later, it's recommended to change the owner of the bin folder to your user.