Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
目录
1. Shell 的历史
2. Shell 如何执行命令
2.1. 执行交互式命令
2.2. 执行脚本
3. Shell 的基本语法
3.1. 变量
3.2. 文件名代换(Globbing):* ? []
3.3. 命令代换:`或 $()
3.4. 算术代换:$(())
3.5. 转义字符:\
3.6. 单引号
3.7. 双引号
4. bash 启动脚本
4.1. 作为交互登录 Shell 启动,或者使用–login 参数启动
4.2. 以交互非登录 Shell 启动
4.3. 非交互启动
4.4. 以 sh 命令启动
5. Shell 脚本语法
5.1. 条件测试:test [
5.2. if/then/elif/else/fi
5.3. case/esac
5.4. for/do/done
5.5. while/do/done
5.6. 位置参数和特殊变量
5.7. 函数
6. Shell 脚本的调试方法