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

  • 相关阅读:
    javascript之数组操作
    python中的类中属性元素加self.和不加self.的区别
    Q查询
    jQuery EasyUI的各历史版本和应用
    了解Entity Framework中事务处理
    C#中Abstract和Virtual的区别
    控制器post参数接收
    存储过程调用存储过程
    表变量、临时表(with as ,create table)
    LINQ TO SQL 实现无限递归查询
  • 原文地址:https://www.cnblogs.com/liujun5319/p/9600882.html
Copyright © 2011-2022 走看看