12. Learning progress and task of self-study--linux "Bash profile"

Source: Internet
Author: User

Bash's configuration file

Bash configuration file :

Persist User Configuration
Profile class: Provides configuration for interactively logged-on users
/etc/profile Global
/etc/profile.d/*.sh Global
~/.bash_profile personal Configuration, valid only for the current user
Function:
Setting environment variables
Used to implement a run command or script

How to read the configuration file:
/etc/profile-->/etc/profile.d/*.sh-->~/.BASH_PROFILE-->~/.BASHRC-->/ETC/BASHRC

BASHRC class: Non-interactive user login provides configuration
/ETC/BASHRC: Global
~/.BASHRC: Personal Configuration
Function:
Setting Local Variables
Command aliases can be defined

How to read a configuration file
~/.BASHRC-->/ETC/BASHRC-->/etc/profile.d/*.sh

Login Type:
Interactive login: Enter user information directly through the terminal login system
Su-username or su-l UserName:


Non-interactive logon:
Su Usename
The terminal under the graphical interface
When executing the script, set the configuration file first


How the new configuration will take effect:
Notifies the shell to reread system files
Source (.) Reread configuration file
. file
Re-Login

12. Learning progress and task of self-study--linux "Bash profile"

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.