Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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 am trying to get sublime text to run from the command line using this tutorial.

It says to run this command:

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

But when I try to run that command I get an error "no such file or directory." Sublime text 2 is in my applications folder -- but it looks like there is no bin folder in my home directory. Do I need to create one? Is this something that should be there? Am I doing something wrong?

share|improve this question

Yes simply create the ~/bin directory and then create the link. I doubt it should be there, but it's generally a best practice on Unix systems to create a ~/bin to maintain extraneous executables that you'd like to use within your personal environment.

Additionally you'll need to make sure that this directory is also on your PATH (echo $PATH) so that you can execute this command from any location on your system, without have to explicitly call it out as:

$ ~/bin/subl
share|improve this answer
Thanks--this answers all my questions! – Steve S Aug 7 '14 at 5:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.