bash pocket reference ---- bash 随身参考书
help for power users and sys admins
bash pocket reference
If you want to get to the heart of Mac OS X,Linux, and other Unix systems,you need to know how to work with the bash shell.
如果你想深入了解Mac OS X,Linux或者其他Unix系统,你必须了解如何与bash打交道.
This concise little book puts all of the essential information about bash at your fingertips, and includes a comprehensive index.
这本简明小书使得bash的重要内容触手可及,并且还包含了一个全面的内容索引.
You'll quickly find answers to the annoying questions that always come up when you're writing shell scripts:What characters do you need to quote?How do you get variable substitution to do exactly what you want?How do you use arrays?And more.
每次你在写脚本时,遇到的诸如哪些字符需要引用?如何才能进行你想要的变量替换?如何使用数组等等烦人的问题,在本书中都可以迅速找到答案.
Updated for the most recent version of bash,this book covers:
本书已针对最新版本的bash更新,包括以下内容:
- Invoking the shell 调用shell
- Job control 作业控制
- Syntax 语法
- Shell options shell选项
- Functions 函数
- Command execution 命令执行
- Variables 变量
- Coprocesses 协程
- Arithmetic expressions 算术表达式
- Restricted shells 受限的shells
- Command history 命令历史
- Built-in commands 内置命令
- Programmable completion 可编程补全
Arnold Robbins is a professional programmer and technical author.He has worked with Unix system since 1980, and he currently mantains gawk and its documentation.Arnold is the author of Unix in a nutshell,Fourth edition, and the coauthor of classic shell scripting(both O'Reilly).
Arnold Robbins既是专业程序员,又是技术作家。从1980年开始,他就开始玩Unix.目前,他负责维护gawk和它的文档。Arnold是Unix in a nutshell第四版的作者,又是classic shell scripting的合著者。(两本书都是O'Reilly出版的)
chapter one --- The Bash Shell
第一章 --- bash
This pocket reference covers bash, particularly version 4.1,the primary shell for GNU/Linux and Mac OS X.
该随身参考书主要涉及bash,尤其是4.1版本,它是GNU/Linux and Mac OS X的主要shell.
- History 历史
- Overview of features 特性简介
- Invoking the shell 调用shell
- Syntax 语法
- Functions 函数
- Variables 变量
- Arithmetic expressions 算术表达式
- Command History 命令历史
- Programmable completion 可编程补全
- Job control 作业控制
- Shell options shell选项
- Command execution 命令执行
- Coprocesses 协程
- Restricted shells 受限shells
- Built-in commands 内置命令
- Resources 资源
Conventions
惯例
Filenames, command names, options and inline examples are shown in constant width .
文件名,命令名,选项和行内实例用等宽字体显示。
Input that a user should type in exactly as-is is shown in constant width userinput .
用户需完全照搬的输入用等宽用户输入字体显示。
Items which should be replaced with real data in examples and syntax descriptions are shown in constant width replaceable .
需要用实际数据替换的例子或者语法描述的则以等宽可替换字体显示。
New terms and emphasized items are shown in italics.
新的或重要的条款则以斜体显示。
Finally, references of the form name(N) refer to the manual page for name in section N of the online manual (accessed via the man command).
最后,手册页中对name(N)的引用是指在线手册中的N章节中关于name的手册页(通过man命令来访问)
History
历史
浙公网安备 33010602011771号