Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

After follow this tutorial, I cannot lauch Sublime Text from command line... how can I fix this?

share|improve this question

2 Answers 2

up vote 17 down vote accepted

After follow that tutorial and face the problem reported, i googled about and realized that I forgot to create a symbolic link...

sudo ln -s /opt/sublime/sublime_text /usr/bin/subl

Now the problem is solved :)

share|improve this answer
I think it would be better to use /usr/local/bin instead of /usr/bin. –  lev Jan 26 at 9:17

For recent versions of Ubuntu and Sublime Text 3, I'm adding a symlink like this:

sudo ln -s /opt/sublime_text/sublime_text /usr/local/bin/subl

Then I can execute it from terminal like subl myFile.php.

share|improve this answer
+1 for using /usr/local/bin instead of /usr/bin. –  lev Jan 26 at 9:09

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.