After following this tutorial, I cannot launch Sublime Text from command line. How can I fix this?
Asked
Active
Viewed 2.2e+01k times
5 Answers
54
After following this tutorial and facing the reported problem, I googled it and realised that I had forgot to create a symbolic link.
sudo ln -s /opt/sublime/sublime_text /usr/bin/subl
Now the problem is solved :)
Bilesh Ganguly
- 526
sonnuforevis
- 1,583
42
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.
Arda
- 1,330
- 11
- 15
2
for those who install sublime in Ubuntu Software, just type
sudo ln -s /snap/sublime-text/38/opt/sublime_text/sublime_text /usr/local/bin/subl
Morris Tai
- 29
2
Personally I prefer creating an alias in ~/.bashrc, to avoid having to keep track of symbolic links:
alias subl=/opt/sublime_text/sublime_text
David Foerster
- 36,890
- 56
- 97
- 151
gaterush
- 129