The Bash Shell
This pocket reference covers Bash, particularly version 4.4, the primary shell for GNU/Linux and Mac OS X. Bash is available for Solaris and the various BSD systems, and can be easily compiled for just about any other Unix system. It can even be compiled for OpenVMS! The following topics are covered:
History
Overview of features
Invoking the shell
Command exit status
Syntax
Functions
Variables
Arithmetic expressions
Command history
Programmable completion
Job control
Shell options
Command execution
Coprocesses
Restricted 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 . Text that should be
replaced with real data in examples and syntax descriptions is shown in
userinputconstantwidthreplaceable. New terms and emphasized words and phrases
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).
Shell variable values (including environment variables)
are indicated as $VAR.
History
The original Bourne shell distributed with V7 Unix in 1979
became the standard shell for writing shell scripts. The Bourne shell is
still found in /bin/sh on many
commercial Unix systems. It has
not changed that much since its initial release, although it has seen
modest enhancements over the years. The most notable new features added
were the CDPATH ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access