Command to start Sublime Text on Ubuntu

Jul. 5, 2012

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

#!/bin/sh
$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 .

or

subl filename