Set environment variables in Ubuntu12.04LTS

Source: Internet
Author: User
Environment variable settings in Ubuntu12.04LTS: 1. Set the current user environment variable (which is invalid for the root user) Open the terminal input: www.linuxidc.com @ linuxidc :~ $ Sudogedit ~ /. Bashrc [sudo] passwordforwww.linuxidc.com: Add: exportPATH =/opt/EmbedSky/4.3.3/bin: $ PATH at the end, where/op

Environment variable settings in Ubuntu 12.04 LTS:

1. Set the current user environment variable (invalid for root users)

Open the terminal and enter:
Www.linuxidc.com @ linuxidc :~ $ Sudo gedit ~ /. Bashrc
[Sudo] password for www.linuxidc.com:

Add at the end:
Export PATH =/opt/EmbedSky/4.3.3/bin: $ PATH
Where/opt/EmbedSky/4.3.3/bin is the environment variable path you need to set.

To make it effective immediately, run the following command on the terminal:
Www.linuxidc.com @ linuxidc :~ $ Source ~ /. Bashrc
Or restart your computer.

2. Set system environment variables (effective for root users)

Open the terminal and enter:
Www.linuxidc.com @ linuxidc :~ $ Sudo gedit/etc/environment
[Sudo] password for www.linuxidc.com:

Add "colon:" add "your environment variable PATH" at the end of PATH = "...".

To make it effective immediately, run the following command on the terminal:
Www.linuxidc.com @ linuxidc :~ $ Source/etc/environment
Or restart your computer.

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

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.