Profile and BASHRC

Source: Internet
Author: User
/etc/profile. /ETC/BASHRC is the system Global environment variable setting
~/.PROFILE,~/.BASHRC private environment variable settings under the User home folder
When you get a shell process when you log in to the system. It has three steps to read the environment configuration file
1 first read the Global environment variable profile/etc/profile, and then read the additional set of documents according to its contents, such as
/ETC/PROFILE.D and/ETC/INPUTRC
2 then according to the different user account, go to their home folder read ~/.bash_profile, assuming this can not read the ~/.bash_login. It's not going to read.
~/.profile. These three document settings are basically the same. Read has a priority relationship
3 then read ~/.BASHRC on the user account
As for the difference between ~/.profile and ~/.BASHRC
are individually customizable
~/.profile can set the user's proprietary path, environment variables, etc., it can only log in when the time to run
~/.BASHRC is also a user-specific set-up document. Ability to set the path, command alias, each time the shell script run will use it once

Profile and BASHRC

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.