In linux, how does one fix the failure of the source/etc/profile terminal ?, Sourceprofile

Source: Internet
Author: User

In linux, how does one fix the failure of the source/etc/profile terminal ?, Sourceprofile

I originally wanted to configure environment variables. I have read many online and blog posts about changing the/etc/profile. Then, after source/etc/profile, the environment variables can be permanently saved to take effect, however, once the terminal is closed, the environment variable becomes invalid and other terminals cannot use it. On the Internet, it is said to create the. bash_profile file in the current user directory, write environment variables, and then execute the command source ~ /. Bash_profile can make this user take effect permanently. But it is still the same as the previous/etc/profile and becomes invalid.

In ~ /. Modify the environment configuration in the bashrc file, sourct ~ /. Bashrc, and finally close the terminal...

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.