In ubuntu7.10, how does one add environment variables?

Source: Internet
Author: User
In ubuntu7.10, how does one add environment variables? -- Linux general technology-Linux programming and kernel information. The following is a detailed description. My system is ubuntu7.10. To install GRADS, you need to set environment variables in ubuntu.
Environment variables are:
Path = "/usr/local/grads/bin"
GASDIR = "/usr/local/grads/data"

Therefore, I added these two environment variables using the export command in the bashrc file under my account. I found that the two environment variables did not work, but all linux commands under Terminal failed, and I changed them back to the original one, restore to normal.
Disappointed, I tried to add the above two environment variables to the/etc/profile file and found that the system could not be accessed. In security mode, I changed the profile back to its original state and the system went back to normal.
How can I add these two environment variables.

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.