How To Install And Use Sublime Text On Ubuntu

In this blog post We will learn to install and use sublime text on Ubuntu.

What Is Sublime Text?

  • Sublime Text is a shareware cross-platform source code editor with a Python application programming interface.
  • It natively supports many programming languages and markup languages, and functions can be added by users with plugins, typically community-built and maintained under free-software licenses.


Make sure you have sudo or root privileges to the system

Installing Sublime Text On Ubuntu

Sublime text can be installed in the system in many ways.

Method 1:

Update the Ubuntu’s APT package repository and install the dependent packages.

sudo apt-get update
sudo apt install apt-transport-https ca-certificates curl software-properties-common

Import the GPG Key and Add the Sublime Text APT repository to the system using the below commands.

curl -fsSL | sudo apt-key add -
sudo add-apt-repository "deb apt/stable/"

Update the APT repository and install Sublime text using the below commands.

sudo apt-get update
sudo apt-get install sublime-text

We have successfully installed sublime text on the Ubuntu operating system.

Method 2:

Sublime Text can be installed using Snap.

Snap is a software package and deployment system developed by Canonical for Linux operating system.

The packages called snaps and the tool for using them snapd works across Linux distributions.

If you dont have snap installed on the Ubuntu operating system , You can install them using the below command.

sudo apt install snapd

Issue the below command , To install sublime text using snap

sudo snap install sublime-text --classic

We have installed Sublime text using Snap.

Using Sublime Text On Ubuntu

We can start Sublime Text from the linux terminal using the below command.


Also We can start it by accessing it from Activities.

Sublime Text appears as shown below.

To Open a file using Sublime text , Run as shown below.

subl filename


We have successfully installed Sublime Text on Ubuntu operating system.

Please check out my other blogs.