Professional Documents
Culture Documents
Table of Contents
Introduction............................................................................................ 5 I/O Redirection Examples................................................................47
What this Course is About................................................................. 6 Exercises.......................................................................................... 48
What is the shell?............................................................................... 7 The Here Document Syntax.............................................................49
The History of the Shell.....................................................................9 Using Pipelines to Combine Commands......................................... 50
Bash Shell Notable Features............................................................ 10 Subsequent Command Execution.................................................... 52
Shell Basics...........................................................................................11 Process Grouping for Redirection....................................................53
Interactive Shell Usage.................................................................... 12 Exercises.......................................................................................... 54
Files & Directories..........................................................................13 Process Management Basics.................................................................55
Filenames, Wildcards, and Pathname Expansion............................ 14 Characteristics of Processes.............................................................56
Exercises.......................................................................................... 17 Managing Processes.........................................................................58
Common Shell Utilities/Commands.....................................................18 Job Priorities.................................................................................... 60
Cat.................................................................................................... 19 Exercises.......................................................................................... 62
tr....................................................................................................... 20 Shell Special Characters....................................................................... 63
Grep..................................................................................................23 Special Metacharacters.................................................................... 64
Find.................................................................................................. 29 Control Keys.................................................................................... 66
Sort...................................................................................................31 Shell Help.........................................................................................68
Cut....................................................................................................32 Shell Command Line Editing...........................................................69
Head & Tail......................................................................................33 Tab Completion............................................................................... 71
Sed....................................................................................................34 History Expansion............................................................................73
Awk..................................................................................................37 Exercises.......................................................................................... 75
Exercises.......................................................................................... 39 Customizing the BASH Environment.................................................. 76
Handling Input/Output..........................................................................41 The User Environment.....................................................................77
I/O Channels.................................................................................... 42 Shell Aliases.....................................................................................79
I/O Redirection Operators................................................................44 Shell Options....................................................................................82
Page 2 of 169
Shell Programming with BASH
Page 3 of 169
Shell Programming with BASH
Page 4 of 169