Sublime Forum

The location / path of sublime in my computer (ubuntu 14.04) for bash profile

#1

Below is part of my bash profile, and the last line is what I want to ask help.

# start sublime from the terminal alias subl="/usr/share/applications\ Text\ 2.app/Contents/SharedSupport/bin/subl"
(*this file is a copy from Udacity git and github course)

I want to open sublime from terminal by typing ‘subl’, but can’t find the address of the sublime.
When I search sublime in my computer, i see only downloaded zip file.
In installed again to see the installation info, but somehow Ubuntu 14.04 doesn’t tell me where it is. (probably it’s me don’t know where to find it.)

0 Likes

#2

which version of Sublime Text? the latest Sublime Text 3 deb automatically puts the folder that contains subl on the path, there is no need for an alias

0 Likes

#3

I found it at /usr/bin/subl in 16.04LTS

0 Likes

#4

In Ubuntu 18.04 when installed using the Ubuntu Software Manager, it is installed as a snap. You can find it at /snap/sublime-tex/current/opt/sublime_text Yet when using snap, subl should be in your path already.

0 Likes