Linux's Bash Shell's operating environment

Source: Internet
Author: User

1 Bash Information profile for the TTY login interface:/etc/issue

Logon interface information for Telnet telnet:/etc/issue.net

2/ETC/MOTD the contents of this file can be seen by all users including the root user when logging in, so when there is important notice or maintenance, you can edit the content in this file

Bash Environment configuration file:

Login-shell: Bash made by TTY terminal, and enter user and password, so get bash is Login-shell

Non-login Shell: After you log in to Linux with X windows and then start the terminal from the graphical interface, the bash environment is not login bash, or non-login shell

The read profile for these two bash environments is not the same

Config file read by login Shell:

/etc/profile: This is the system settings, it is best not to modify this file

~/.bash_profile or ~/.bash_login or ~/.profile: This is the user bash own personal settings files, their own data, can be written here, the user's own settings file will eventually read into the ~/.BASHRC file, So the user has their own preferences, can be written to ~/.bashrc this file

In fact,/etc/profile will go to invoke the external settings data as follows:

/ETC/PROFILE.D/*.SH: If you want all users to be able to share some command aliases, you can create. SH expanded files in this directory and write some data

/ETC/SYSCONFIG/I18N: This is a user-language configuration file

Anyway, login shell login to read the system environment profile is only/etc/profile, whether it is to modify the system configuration file or personal user profile, you can use the source command re-read into effect, without the need to log off the system to take effect;

Linux's Bash Shell's operating environment

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.