Lauching Sublime Text From Command Line
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 :)
Did not occur for me using ST3, had to manually link. No command line options were available otherwise.
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
I was trying to open sublime text 3 using `sublime file.php`. Thanks to point that the correct command is `subl`. It worked without creating the symlink.
@wotter check the reply that he linked: https://unix.stackexchange.com/questions/8656/usr-bin-vs-usr-local-bin-on-linux/8658#8658
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