Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm following along with this tutorial on how to use Sublime text editor https://tutsplus.com/lesson/services-and-opening-sublime-from-the-terminal/ . It gives instructions to enter the following command to enable opening of Sublime in the terminal.

ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /bin/subl

After creating that link, it says I should be able to do

subl .

to open all the files in a folder in Sublime. However, when I do it, it says

-bash: subl: command not found

My system says the file exists

 ln: /bin/subl: File exists

Any idea what I can do?

share|improve this question
up vote 2 down vote accepted

Try this. Create a new link to /usr/local/bin:

ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .