Sublime Forum

Opening Sublime from Linux Command Line?

#1

Hi,

Is there a way to open Sublime from Linux’s command line? I am running Linux Mint 18.1.

Any help is appreciated.

0 Likes

#2

I don’t have any experience with that particular Linux distribution, but in general all you have to do is one of the following:

  • Add the directory that you have installed Sublime in to your PATH to make it available
  • Add a symlink to the Sublime binary from its install location to a location that is in your PATH already

Under Linux I install via the tarball, and there the binary is named sublime_text; using a package of some sort may or may not modify that to be something like subl or just sublime though. If you use the second method, you can name your symlink anything you want, e.g. to make it less to type.

It’s also possible that when installing via a package everything is pre-setup for you (I have no way to tell, however). You might try just running sublime_text directly from the terminal to see if it works (or check the install directory to double check what the binary name is if it’s not sublime_text and try that instead).

1 Like

#3

Try to use subl /path (or . for current dir) if command not found check system PATH

0 Likes