Add Sublime to environment variables in Ubuntu

Source: Internet
Author: User
Tags sublime editor
We recommend that you use the Sublime editor to add Sublime to the environment variables in Ubuntu. it is much easier to use it than vim. After decompression, it can be used directly, but it is inconvenient to switch to its path. you can add the sublime path to the environment variable. in the future, you can just enter sublime directly... we recommend that you use the Sublime editor to add Sublime to the environment variables in Ubuntu. it is much easier to use it than vim. You can use it directly after decompression, but you need to switch
It is inconvenient to enter the sublime path to the environment variable. you can directly enter sublime in the future. The sublime_text executable file is in the/root/Downloads/Sublime Text 2 Directory. in order to directly input sublime to execute sublime_text, enter the following content on the terminal: [plain] # cp sublime_text sublime can be used in two ways. The first method takes effect after logon, but is permanent. The second method takes effect immediately, but only on the current terminal. Method 1: [plain] # gedit/etc/environment the content of the environment file is as follows: PATH = "/usr/local/sbin:/usr/local/bin: /usr/sbin:/usr/bin:/sbin:/bin:/usr/games "add the Sublime path (note: The paths are separated by colons ): PATH = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:
/Root/Downloads/Sublime Text 2 "save and log on again. [Plain] # echo $ PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: /usr/games:/root/
View the current PATH environment variable in Downloads/Sublime Text 2. you can see that the Sublime PATH has been added to the environment variable. Enter sublime in the terminal to use it. Method 2: [plain] // add a new PATH after the PATH environment variable. # Export PATH = $ PATH:/root/Downloads/Sublime \ Text \ 2 Note: # The command is later, # indicates the command executed by the Super User.
 
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.