1. shell定义:只要能够操作应用程序接口来呼叫核心工作的都叫壳程序
  2. shell分类
    1. bourne shell 简称sh /bin/sh
    2. c shell (sun) /bin/csh
    3. k shell (商业上常用) /bin/ksh 兼容BASH
    4. TCSH /bin/tcsh 已经取代csh
    5. BASH ( Bourne Again Shell) 基于gun Bourne shell 增强版本 /bin/bash
    6. zsh /bin/zsh 基于ksh 功能强大
    7. 各个版本的SHELL在语法下达方面会有所不同
    8. /etc/shells 用于程序运行时来检查用户所能使用的SHELL
  3. bash 特点
    1. 命令修编能力(history
      1. 命令修编能力(history)路径:~/.hash_history 默认1000条
      2. history语法:[test@linux]# history [n] [test@linux]# history [-c] [test@linux]# history [-raw] histfiles 参数: n :数字,要列出最近的 n 笔命令列表 -c :将目前的shell中的所有 history 内容全部消除 -a :将目前新增的history 指令新增入 histfiles 中,若没有加 histfiles , 则预设写入 ~/.bash_history -r :将 histfiles 的内容读到目前这个 shell 的 history 记忆中 -w :将目前的 history 记忆内容写入 histfiles
      3. [test@linux]# [!number] [!command] [!!] 参数说明: number :第几个指令的意思; command :指令的开头几个字母 ! :上一个指令的意思!
      4. history|more
    2. 命令或档案补全
      1.  [Tab] 接在一串挃令癿第一个字癿后面,则为命令补全 [Tab] 接在一串挃令癿第二个字以后时,则为『档案补齐』
    3. 命令别名 alias
      1. alias lm='ls -al'
    4. jobcontrol foreground background
    5. shell scripts
    6. 通配符(wildcard)
  4. 内建命令 type
    1. type [-tpa] name 选项不参数: :不加任何选项不参数时,type 会显示出 name 是外部挃令还是 bash 内建 挃令 -t :当加入 -t 参数时,type 会将 name 以底下这些字眼显示出他癿意义: file :表示为外部挃令; alias :表示该挃令为命令删名所讴定癿名称;builtin :表示该挃令为 bash 内建癿挃令功能; -p :如果后面接癿 name 为外部挃令时,才会显示完整文件名; -a :会由 PATH 发量定义癿路径中,将所有吨 name 癿挃令都列出杢,包吨 alias
  5. 分支主题 5
  6. 分支主题 6
  7. 分支主题 7