I have installed Sublime Text 3 following the tutorial on unixmen.com. How to run it from terminal and how to check the version (from terminal or however)?
3 Answers
The command to start Sublime Text:
subl
The command to see its version:
subl --version
-
And after Sublime Text 3 goes from beta do I have to do something to have stable version or? And how to update when new build is released (from terminal or from gui, doesn't matter)? Sep 16, 2014 at 17:28
-
1You added the ppa to your sources, so any new update should came automatically. Sep 16, 2014 at 17:30
The usual command for Sublime Text is subl
:
From subl --help
:
$ subl --help
Sublime Text build 3065
Usage: sublime_text [arguments] [files] edit the given files
or: sublime_text [arguments] [directories] open the given directories
Arguments:
--project <project>: Load the given project
--command <command>: Run the given command
-n or --new-window: Open a new window
-a or --add: Add folders to the current window
-w or --wait: Wait for the files to be closed before returning
-b or --background: Don't activate the application
-h or --help: Show help (this message) and exit
-v or --version: Show version and exit
Filenames may be given a :line or :line:column suffix to open at a specific
location.
Hence, to get the version:
$ subl -v
Sublime Text Build 3065
As Glutanimate noted, you can get the version from the Help menu, from About Sublime Text
:
-
1You can also check the version via the UI: Help -> About Sublime Text Sep 16, 2014 at 17:08
-
2@Glutanimate thanks. To discover that, I'd have to run it first. :D I'll update the answer.– muruSep 16, 2014 at 17:09
-
1I saw
Build 3065
in the screenshot and cannot even figure out it is sublime 2 or sublime 3...– B.Mr.W.Jun 10, 2015 at 21:30 -
5@B.Mr.W. Same here. I'm guessing 3000–3999 represents version 3, but if so it would be nice to see that actually stated somewhere, especially since builds are usually given sequentially increasing system-generated numbers. Jun 28, 2015 at 1:48
From the Sublime Text Unofficial Documentation:
You can create a symbolic lynk sudo ln -s /opt/Sublime\ Text\ 3/sublime_text /usr/bin/sublime
. "/opt" being the dir where you installed Sublime.
The Documentation also shows how to add Sublime to the Unity Launcher if you wish.