zoukankan      html  css  js  c++  java
  • shell基础part3

    shell基础

    一、环境变量配置文件简介

      1、source命令的作用就是将环境变量配置文件强制生效,其格式为: source 环境变量配置文件或者 . 环境变量配置文件

      2、环境变量配置文件中主要是定义对系统操作环境生效的系统默认环境变量。如PATH history PS1等。 

      3、环境变量配置文件的路径:/etc/profile;/etc/profiled/*.sh;/etc/.bashrc;用户家目录下/.bashrc;用户家目录下/.bashrc_profile.

    二、环境变量配置文件的作用

      1、环境变量配置文件的读取过程

      

      2、/etc/profil文件的作用                     ~/.bash_profile的作用                        ~/.bashrc的作用        /etc/bashrc文件的作用

      

       3、注销时生效的环境变量:~/.bash_logout;

        存放系统用户操作命令的环境变量:~/.bash_history

       4、shell登陆信息:

        本地终端欢迎信息:/etc/issue                                                           远程终端欢迎信息:/etc/issue.net

        

        登陆后的欢迎信息:/etc/motd(这个欢迎信息是登陆后显示,无论在本地还是在远程都生效,在远程生效时需要打开ssh的配置文件/etc/ssh/sshd_conf更改Banner的参数)

  • 相关阅读:
    poj 3616 Milking Time
    poj 3176 Cow Bowling
    poj 2229 Sumsets
    poj 2385 Apple Catching
    poj 3280 Cheapest Palindrome
    hdu 1530 Maximum Clique
    hdu 1102 Constructing Roads
    codeforces 592B The Monster and the Squirrel
    CDOJ 1221 Ancient Go
    hdu 1151 Air Raid(二分图最小路径覆盖)
  • 原文地址:https://www.cnblogs.com/xuanan/p/6919429.html
Copyright © 2011-2022 走看看