Ubuntu: Opening Sublime from Terminal

Ubuntu:

Download the Sublime package and extract the contents OR  follow the steps here to install from your terminal.
Move your extracted contents to the ‘opt’ folder in your terminal:

$ sudo mv Sublime\ Text\ 2 /opt/

Setting up a link:

$ sudo ln -s /opt/Sublime\ Text\ 2/sublime_text /usr/bin/sublime

Test if it worked by typing ‘sublime’ to open the text editor:

$ sublime
Advertisements