[Linux] Bash environment configuration file

Source: Internet
Author: User
When a user logs in, the following two configuration files will be read: 1) etcprofile: global configuration file of the system. it is best not to modify this file. 2 )~ Bash_profile or ~ Bash_login or ~ Profile: The global configuration file of your private configuration file-etcprofileetc

When a user logs in, the following two configuration files are read:

1)/etc/profile: The global configuration file of the system. it is best not to modify this file.

2 )~ /. Bash_profile or ~ /. Bash_login or ~ /. Profile: private configuration file

The global configuration file-/etc/profile will call the following files in sequence: 1)/etc/inputrc 2)/etc/profile. d /*. sh: If you need to set some shared command aliases for all users, you can create a command alias with the extension. sh file 3)/etc/sysconfig/i18n personal configuration file the personal configuration file will be read according to the following priority, read one to stop: 1 )~ /. Bash_profile 2 )~ /. Bash_login 3 )~ /. Profile. by default ,~ /. Bash_profile will also read ~ /. Bashrc, and ~ /. Bashrc will read the/etc/bashrc and manually read the environment configuration file command-source or the decimal point (.) through the source or decimal point (.) can read the configuration file manually.
~ /. Bash_history:History commands are recorded here ~ /. Bash_logout: Command executed when the user logs out
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.