Learning the bash Shell, 2nd Edition
Publisher: O'Reilly Media
Release Date: January 1998
Pages: 336
Read on Safari with a 10-day trial
Start your free trial now Buy on AmazonWhere’s the cart? Now you can get everything on Safari. To purchase books, visit Amazon or your favorite retailer. Questions? See our FAQ or contact customer service:
1-800-889-8969 / 707-827-7019
support@oreilly.com
- How to install bash as your login shell
- The basics of interactive shell use, including UNIX file and directory structures, standard I/O, and background jobs
- Command line editing, history substitution, and key bindings
- How to customize your shell environment without programming
- The nuts and bolts of basic shell programming, flow control structures, command-line options and typed variables
- Process handling, from job control to processes, coroutines and subshells
- Debugging techniques, such as trace and verbose modes
- Techniques for implementing system-wide shell customization and features related to system security
Table of Contents
-
Chapter 1 bash Basics
-
What Is a Shell?
-
Scope of This Book
-
History of UNIX Shells
-
Getting bash
-
Interactive Shell Use
-
Files
-
Input and Output
-
Background Jobs
-
Special Characters and Quoting
-
Help
-
-
Chapter 2 Command-Line Editing
-
Enabling Command-Line Editing
-
The History File
-
emacs Editing Mode
-
vi Editing Mode
-
The fc Command
-
History Expansion
-
readline
-
Keyboard Habits
-
-
Chapter 3 Customizing Your Environment
-
The .bash_profile, .bash_logout, and .bashrc Files
-
Aliases
-
Options
-
Shell Variables
-
Customization and Subprocesses
-
Customization Hints
-
-
Chapter 4 Basic Shell Programming
-
Shell Scripts and Functions
-
Shell Variables
-
String Operators
-
Command Substitution
-
Advanced Examples: pushd and popd
-
-
Chapter 5 Flow Control
-
if/else
-
for
-
case
-
select
-
while and until
-
-
Chapter 6 Command-Line Options and Typed Variables
-
Command-Line Options
-
Typed Variables
-
Integer Variables and Arithmetic
-
Arrays
-
-
Chapter 7 Input/Output and Command-Line Processing
-
I/O Redirectors
-
String I/O
-
Command-Line Processing
-
-
Chapter 8 Process Handling
-
Process IDs and Job Numbers
-
Job Control
-
Signals
-
trap
-
Coroutines
-
Subshells
-
Process Substitution
-
-
Chapter 9 Debugging Shell Programs
-
Basic Debugging Aids
-
A bash Debugger
-
-
Chapter 10 bash Administration
-
Installing bash as the Standard Shell
-
Environment Customization
-
System Security Features
-
-
Chapter 11 bash for Your System
-
Obtaining bash
-
Unpacking the Archive
-
What’s in the Archive
-
Who Do I Turn to?
-
-
Appendix Related Shells
-
The Bourne Shell
-
The IEEE 1003.2 POSIX Shell Standard
-
The Korn Shell
-
pdksh
-
Workalikes on PC Platforms
-
-
Appendix Reference Lists
-
Invocation
-
Built-In Commands and Reserved Words
-
Environment Variables
-
Test Operators
-
set Options
-
shopt Options
-
I/O Redirection
-
emacs Mode Commands
-
vi Control Mode Commands
-
-
Appendix Loadable Built-Ins
-
Appendix Syntax
-
Reserved Words
-
BNF for bash
-
-
Appendix Obtaining Sample Programs
-
FTP
-
FTPMAIL
-
-
Colophon