Environment Profile for Linux Bash

Source: Internet
Author: User

When the user logs on, the following two profiles will be read:

1)/etc/profile: System global configuration file, it is best not to modify the file

2 ~/.bash_profile or ~/.bash_login or ~/.profile: User-Private configuration file

Global configuration file-/etc/profile

/etc/profile will call the following files in turn:

1)/etc/inputrc

2)/etc/profile.d/*.sh: If you need to help all users set up some shared command aliases, you can create a file with an. sh extension in this directory.

3)/etc/sysconfig/i18n

Personal configuration Files

The personal profile will be read as a priority, read to stop:

1) ~/.bash_profile

2) ~/.bash_login

3) ~/.profile

By default, ~/.bash_profile also reads ~/.BASHRC, and ~/.BASHRC reads/ETC/BASHRC

Manual read Environment Profile command-source or decimal (.)

The configuration file can be read manually through source or decimal point (.).

~/.bash_history: history Command recorded here

~/.bash_logout: Commands that are executed when a user logs off

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/

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.