zoukankan      html  css  js  c++  java
  • 013_Configuration files of bash

    1. classfys according to the range in which configuration files take effect.
        1.1 The global configuration file
            /etc/profile :
                /etc/profile.d/*.sh
            /etc/bashrc :
        1.2 The personal configuretion file
            ~/.bash_profile
            ~/.bashrc
    2. classfys according to its function
        profile : Provides configuration for shell which logins interactively
            global : /etc/profile :
                /etc/profile.d/*.sh
            personal : ~/.bash_profile
            function :
                1) used to define environment variables
                2) used to run commands and scripts
        bashrc : Provides configuration for shell which logins non-interactively
            global : /etc/bashrc
            personal : ~/.bashrc
            function :
                1) used to define aliases
                2) used to define location variables(本地变量)
    3. shell login
        3.1 interactive login
            The order of loading configuration files is /etc/profile --> /etc/profile.d/*.sh --> ~/.bash_profile --> ~/.bashrc --> /etc/bashrc
        3.2 non-interactive login
            The order of loading configuration files is ~/.bashrc --> /etc/bashrc --> /etc/profile.d/*.sh    
    4. source : Read and execute commands from FILENAME in the current shell

  • 相关阅读:
    数组与指针
    壁纸
    2019/1/11
    指针A
    数组B
    一起来抓老鼠啊!快乐呀!
    打印沙漏
    I think I need a boat house
    币值转换
    《C语言程序设计》编程总结汇总
  • 原文地址:https://www.cnblogs.com/liujun5319/p/9600882.html
Copyright © 2011-2022 走看看