Home
|
简体中文
|
繁体中文
|
杂文
|
Github
|
知乎专栏
|
Facebook
|
Linkedin
|
Youtube
|
打赏(Donations)
|
About
第 19 章 Bash Shell
上一页
部分 II. Shell
下一页
知乎专栏
第 19 章 Bash Shell
目录
19.1. bash - GNU Bourne-Again SHell
19.1.1. -n 检查脚本是否有语法错误
19.1.2. -x 显示详细运行过程
19.2. 切换身份
19.3. test 命令
19.3.1. 判断目录
19.4. I/O 重定向
19.4.1. stdout
19.4.2. error 重定向
19.4.3. 使用块记录日志
19.4.4. tee - read from standard input and write to standard output and files
19.4.5. 创建文件
19.4.6. 快速清空一个文件的内容
19.5. pipes (FIFOs)
19.6. mktemp - create a temporary file or directory 临时目录与文件
19.7. History 命令历史记录
19.7.1. .bash_history
19.7.2. 清理历史记录
19.7.3. .mysql_history
19.8. hash - hash database access method
19.9. prompt
19.10. 变量 variable
19.10.1. 系统变量
19.10.2. 表达式
19.10.3. Internal Environment Variables
19.10.4. set 设置变量
19.10.5. unset 变量销毁
19.10.6. 设置变量默认值
19.10.7. export 设置全局变量
19.10.8. declare
19.10.9. Numerical 数值运算
19.10.10. Strings 字符串操作
19.10.11. Array 数组
19.10.12. read 赋值多个变量
19.10.13. eval
19.10.14. typeset
19.10.15. envsubst - substitutes environment variables in shell format strings
19.11. conditions if and case
19.11.1. if
19.11.2. case
19.12. Loops for, while and until
19.12.1. for
19.12.2. while
19.12.3. until
19.13. Functions
19.13.1. Local variables
19.14. User interfaces
19.14.1. input
19.15. subshell
19.16. Example
19.16.1. 有趣的Shell
19.16.2. backup
19.16.3. CPU 核心数
19.16.4. Password
19.16.5. processes
19.16.6. Shell 技巧
19.16.7. to convert utf-8 from gb2312 code
19.16.8. 使用内存的百分比
19.16.9. 合并apache被cronlog分割的log文件
19.16.10. Linux 交集 差集 并集
19.1. bash - GNU Bourne-Again SHell
19.1.1. -n 检查脚本是否有语法错误
19.1.2. -x 显示详细运行过程