Command to start Sublime Text on Ubuntu

There is a quick method to open Sublime Text from Terminal on Mac OS X.

This is how to run Sublime Text on ubuntu terminal.

Create command file:

sudo vim /usr/local/bin/subl

Copy & Paste below code, and change to your Sublime Text path

$HOME/Apps/Sublime\ Text\ 2/sublime_text $1 &

Give execute permission

sudo chmod +x /usr/local/bin/subl

Then you can do like this

subl .


subl filename

Possibly Related Posts