📅  最后修改于: 2023-12-03 15:20:22.343000             🧑  作者: Mango
As a programmer, one of the essential tools you need in your arsenal is a good text editor. Sublime Text is one such editor that has gained a lot of popularity over the years for being sleek, fast, customizable, and efficient. In this tutorial, we will show you how to download Sublime Text on your Linux machine using the command line (specifically, the shell/bash).
Before you begin, ensure that you have the following:
Open the terminal on your Linux machine.
Check if you have wget installed. Type the following command in the terminal:
wget --version
If you see the version number, then wget is already installed. If not, install it using the following command:
sudo apt-get install wget
Now, go to the Sublime Text website using the following command:
wget -O - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
This command will add the Sublime Text repository to your system.
Add the Sublime Text APT repository by running the following command:
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
This command will add the necessary APT sources for Sublime Text to your system.
Update the APT cache using the following command:
sudo apt-get update
This command will ensure that the latest packages are available for download.
Finally, download and install Sublime Text using the following command:
sudo apt-get install sublime-text
This command will download and install Sublime Text on your system.
Congratulations! You have successfully downloaded Sublime Text on your Linux machine using the command line.
Sublime Text is an excellent text editor, and using the command line to download and install it on your system is a quick and easy process. Hopefully, this tutorial has provided you with the necessary steps to download Sublime Text using the shell/bash. Happy coding!