Ubuntu environment variable configuration file and ubuntu environment variable

Source: Internet
Author: User

Ubuntu environment variable configuration file and ubuntu environment variable

Ubuntu usually uses the following configuration files:

/Etc/environment,/etc/profile,/etc/bash. bashrc ,~ /. Profile ,~ /. Bashrc

Differences between them:

①/Etc/environment

This file is the first configuration file read during Ubuntu login, and environment variables are set for all processes.

②/Etc/profile

The second file read when this file is used to configure the environment variables of all users in the system

③/Etc/bash. bashrc

All initialization files of a shell (User Interface)

④ ~ /. Profile

Configure the personal work environment of the currently logged-on user

⑤ ~ /. Bashrc

The initialization file of the current user each time the shell is opened

Execution sequence:

/Etc/environment -->/etc/profile --> ~ /. Profile -->/etc/bash. bashrc --> ~ /. Bashrc

Instructions to make environment variables take effect:

Source/xxx


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.