Linux environment variable file environment, profile, BASHRC meaning

Source: Internet
Author: User

Transferred from: http://www.th7.cn/system/lin/201508/127503.shtml

(1)/etc/profile: This file sets the environment information for each user of the system, and the file is executed when the user logs on for the first time. and collect the shell settings from the configuration file of the/ETC/PROFILE.D directory.

(2)/etc/environment: is the environment to set up the entire system , and/etc/profile is the setting of all users of the environment, the former is not related to the login user, the latter with the login user .

(3)/ETC/BASHRC: executes this file for each user running the bash Shell . When the bash shell is opened, the file is read.

(4) ~/.bash_profile: Each user can use this file to enter the shell information dedicated to their own use, when the user log on, the file is only executed once ! By default, he sets some environment variables to execute the user's. bashrc file.

(5) ~/.BASHRC: This file contains bash information dedicated to your bash shell, which is read when you log in and every time you open a new shell .

Linux environment variable file environment, profile, BASHRC meaning

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.