第1页 | Learning the Bash Shell | 阅读 ‧ 电子书库

同步阅读进度,多语言翻译,过滤屏幕蓝光,评论分享,更多完整功能,更好读书体验,试试 阅读 ‧ 电子书库

Learning the bash Shell, 3rd Edition

Table of Contents

SPECIAL OFFER: Upgrade this ebook with O’ReillyPrefacebash VersionsSummary of bash FeaturesIntended AudienceCode ExamplesChapter SummaryConventions Used in This HandbookWe'd Like to Hear from YouUsing Code ExamplesSafari EnabledAcknowledgments for the First EditionAcknowledgments for the Second EditionAcknowledgments for the Third Edition1. bash Basics1.1. What Is a Shell?1.2. Scope of This Book1.3. History of UNIX Shells1.3.1. The Bourne Again Shell1.3.2. Features of bash1.4. Getting bash1.5. Interactive Shell Use1.5.1. Commands, Arguments, and Options1.6. Files1.6.1. Directories1.6.2. Filenames, Wildcards, and Pathname Expansion1.6.3. Brace Expansion1.7. Input and Output1.7.1. Standard I/O1.7.2. I/O Redirection1.7.3. Pipelines1.8. Background Jobs1.8.1. Background I/O1.8.2. Background Jobs and Priorities1.9. Special Characters and Quoting1.9.1. Quoting1.9.2. Backslash-Escaping1.9.3. Quoting Quotation Marks1.9.4. Continuing Lines1.9.5. Control Keys1.10. Help2. Command-Line Editing2.1. Enabling Command-Line Editing2.2. The History List2.3. emacs Editing Mode2.3.1. Basic Commands2.3.2. Word Commands2.3.3. Line Commands2.3.4. Moving Around in the History List2.3.5. Textual Completion2.3.6. Miscellaneous Commands2.4. vi Editing Mode2.4.1. Simple Control Mode Commands2.4.2. Entering and Changing Text2.4.3. Deletion Commands2.4.4. Moving Around in the History List2.4.5. Character-Finding Commands2.4.6. Textual Completion2.4.7. Miscellaneous Commands2.5. The fc Command2.6. History Expansion2.7. readline2.7.1. The readline Startup File2.7.2. Key Bindings Using bind2.8. Keyboard Habits3. Customizing Your Environment3.1. The .bash_profile, .bash_logout, and .bashrc Files3.2. Aliases3.3. Options3.3.1. shopt3.4. Shell Variables3.4.1. Variables and Quoting3.4.2. Built-In Variables3.5. Customization and Subprocesses3.5.1. Environment Variables3.5.2. The Environment File3.6. Customization Hints4. Basic Shell Programming4.1. Shell Scripts and Functions4.1.1. Functions4.2. Shell Variables4.2.1. Positional Parameters4.2.2. Local Variables in Functions4.2.3. Quoting with $@ and $*4.2.4. More on Variable Syntax4.3. String Operators4.3.1. Syntax of String Operators4.3.2. Patterns and Pattern Matching4.3.3. Length Operator4.3.4. Extended Pattern Matching4.4. Command Substitution4.5. Advanced Examples: pushd and popd5. Flow Control5.1. if/else5.1.1. Exit Status5.1.2. Return5.1.3. Combinations of Exit Statuses5.1.4. Condition Tests5.1.5. Integer Conditionals5.2. for5.3. case5.4. select5.5. while and until6. Command-Line Options and Typed Variables6.1. Command-Line Options6.1.1. shift6.1.2. Options with Arguments6.1.3. getopts6.2. Typed Variables6.3. Integer Variables and Arithmetic6.3.1. Arithmetic Conditionals6.3.2. Arithmetic Variables and Assignment6.3.3. Arithmetic for Loops6.4. Arrays7. Input/Output and Command-Line Processing7.1. I/O Redirectors7.1.1. Here-documents7.1.2. File Descriptors7.2. String I/O7.2.1. echo7.2.2. printf7.2.3. read7.3. Command-Line Processing7.3.1. Quoting7.3.2. command, builtin, and enable7.3.3. eval8. Process Handling8.1. Process IDs and Job Numbers8.2. Job Control8.2.1. Foreground and Background8.2.2. Suspending a Job8.3. Signals8.3.1. Control-Key Signals8.3.2. kill8.3.3. ps8.4. trap8.4.1. Traps and Functions8.4.2. Process ID Variables and Temporary Files8.4.3. Ignoring Signals8.4.4. disown8.4.5. Resetting Traps8.5. Coroutines8.5.1. wait8.5.2. Advantages and Disadvantages of Coroutines8.5.3. Parallelization8.6. Subshells8.6.1. Subshell Inheritance8.6.2. Nested Subshells8.7. Process Substitution9. Debugging Shell Programs9.1. Basic Debugging Aids9.1.1. Set Options9.1.2. Fake Signals9.1.3. Debugging Variables9.2. A bash Debugger9.2.1. Structure of the Debugger9.2.2. The Preamble9.2.3. Debugger Functions9.2.4. A Sample bashdb Session9.2.5. Exercises10. bash Administration10.1. Installing bash as the Standard Shell10.1.1. POSIX Mode10.1.2. Command-Line Options10.2. Environment Customization10.2.1. umask10.2.2. ulimit10.2.3. Types of Global Customization10.3. System Security Features10.3.1. Restricted Shell10.3.2. A System Break-In Scenario10.3.3. Privileged Mode11. Shell Scripting11.1. What's That Do?11.1.1. Comments11.1.2. Variables and Constants11.2. Starting Up11.3. Potential Problems11.4. Don't Use bash12. bash for Your System12.1. Obtaining bash12.2. Unpacking the Archive12.3. What's in the Archive12.3.1. Documentation12.3.2. Configuring and Building bash12.3.3. Testing bash12.3.4. Potential Problems12.3.5. Installing bash as a Login Shell12.3.6. Examples12.4. Who Do I Turn to?12.4.1. Asking Questions12.4.2. Reporting BugsA. Related ShellsA.1. The Bourne ShellA.2. The IEEE 1003.2 POSIX Shell StandardA.3. The Korn ShellA.4. pdkshA.5. zshA.6. Shell Clones and Unix-like PlatformsA.6.1. CygwinA.6.2. DJGPPA.6.3. MKS ToolkitA.6.4. AT&T UWINB. Reference ListsB.1. InvocationB.2. Prompt String CustomizationsB.3. Built-In Commands and Reserved WordsB.4. Built-In Shell VariablesB.5. Test OperatorsB.6. set OptionsB.7. shopt OptionsB.8. I/O RedirectionB.9. emacs Mode CommandsB.10. vi Control Mode CommandsC. Loadable Built-InsD. Programmable CompletionSPECIAL OFFER: Upgrade this ebook with O’Reilly

请支持我们,让我们可以支付服务器费用。
使用微信支付打赏


 下一页


下载 · 书页 · 阅读 ‧ 电子书库