zoukankan      html  css  js  c++  java
  • bash基础知识

    站在用户登录的角度来说,SHELL的类型:
    登录式shell:
      正常通常某终端登录
      su - USERNAME
      su -l USERNAME

    非登录式shell:
      su USERNAME
      图形终端下打开命令窗口
      自动执行的shell脚本

    bash的配置文件:
      全局配置
      /etc/profile, /etc/profile.d/*.sh, /etc/bashrc
      个人配置
      ~/.bash_profile, ~/.bashrc

    profile类的文件:
      设定环境变量
      运行命令或脚本

    bashrc类的文件:
      设定本地变量
      定义命令别名

    登录式shell如何读取配置文件?
    /etc/profile --> /etc/profile.d/*.sh --> ~/.bash_profile --> ~/.bashrc --> /etc/bashrc

    非登录式shell如何配置文件?
    ~/.bashrc --> /etc/basrc --> /etc/profile.d/*.sh

    我喜欢一无所有,这样就只能一步一步的创造世界...
  • 相关阅读:
    【题解】【HAOI2011】Problem b
    【题解】完全平方数
    sqoop安装
    hive安装
    hbase分布式安装
    zookeeper分布式安装
    hadoop分布式安装
    zabbix proxy安装及使用
    web数据存储
    js格式
  • 原文地址:https://www.cnblogs.com/riordon/p/3973194.html
Copyright © 2011-2022 走看看