Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
After following this tutorial, I cannot launch Sublime Text from command line. How can I fix this?
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 :)
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.
Personally I prefer creating an alias in ~/.bashrc, to avoid having to keep track of symbolic links:
For anyone who is struggling for sublime text 3.
After creating symlink for opening ST3 use :
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
Required, but never shown
5 years, 8 months ago
21 days ago