Publisher: O'Reilly Media Released: March 2005 Pages: 360
O'Reilly's bestselling book on Linux's bash shell is at it again. Now that Linux is an established player both as a server and on the desktop Learning the bash Shell has been updated and refreshed to account for all the latest changes. Indeed, this third edition serves as the most valuable guide yet to the bash shell. As any good programmer knows, the first thing users of the Linux operating system come face to face with is the shell the UNIX term for a user interface to the system. In other words, it's what lets you communicate with the computer via the keyboard and display. Mastering the bash shell might sound fairly simple but it isn't. In truth, there are many complexities that need careful explanation, which is just what Learning the bash Shell provides. If you are new to shell programming, the book provides an excellent introduction, covering everything from the most basic to the most advanced features. And if you've been writing shell scripts for years, it offers a great way to find out what the new shell offers. Learning the bash Shell is also full of practical examples of shell commands and programs that will make everyday use of Linux that much easier. With this book, programmers will learn: - 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
|
-
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 List -
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 Shell Scripting -
What's That Do? -
Starting Up -
Potential Problems -
Don't Use bash -
Chapter 12 bash for Your System -
Obtaining bash -
Unpacking the Archive -
What's in the Archive -
Who Do I Turn to? -
Appendix A Related Shells -
The Bourne Shell -
The IEEE 1003.2 POSIX Shell Standard -
The Korn Shell -
pdksh -
zsh -
Shell Clones and Unix-like Platforms -
Appendix B Reference Lists -
Invocation -
Prompt String Customizations -
Built-In Commands and Reserved Words -
Built-In Shell Variables -
Test Operators -
set Options -
shopt Options -
I/O Redirection -
emacs Mode Commands -
vi Control Mode Commands -
Appendix C Loadable Built-Ins -
Appendix D Programmable Completion -
Colophon |
- Title:
- Learning the bash Shell, 3rd Edition
- By:
- Cameron Newham
- Publisher:
- O'Reilly Media
- Formats:
-
- Print
- Ebook
- Safari Books Online
- Print:
- March 2005
- Ebook:
- February 2009
- Pages:
- 360
- Print ISBN:
- 978-0-596-00965-6
- | ISBN 10:
- 0-596-00965-8
- Ebook ISBN:
- 978-0-596-15896-5
- | ISBN 10:
- 0-596-15896-3
|
-
Cameron Newham Cameron Newham lives in Perth, Western Australia. After completing a Bachelor of Science majoring in information technology and geography at the University of Western Australia, Cameron joined Universal Defence Systems (later to become Australian Defence Industries) as a software engineer. He has been with ADI for six years, working on various aspects of command and control systems. In his spare time Cameron can be found surfing the Internet, ballroom dancing, or driving his sports car. He also has more than a passing interest in space science, 3D graphics, synthesiser music, and Depeche Mode. View Cameron Newham's full profile page. |
Colophon Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of Learning the bash Shell, Third Edition, is a silver bass, one of the 400-500 species of sea bass. The silver bass, also known as the white perch, is found in freshwater bays and river mouths along the Atlantic coast of North America from Nova Scotia to South Carolina, and is most abundant in the Chesapeake region. Silver bass live in large schools and feed on small fishes and crustaceans. Although many bass never stray far from one place their whole lives, silver bass swim upstream to spawn, often becoming landlocked in the process. Like most bass, the silver bass is attracted to bright, shiny objects, and can be drawn quite close to swimmers and divers in this way. Colleen Gorman was the production editor and copyeditor for Learning the bash Shell, Third Edition. MaryAnne Weeks Mayo, Lydia Onofrei, and Emily Quill provided quality control. Peter Ryan provided production assistance. Angela Howard wrote the index. Edie Freedman designed the cover of this book. The cover image is a 19th-century engraving from the Dover Pictorial Archive. Karen Montgomery produced the cover layout with Adobe InDesign CS using Adobe's ITC Garamond font. |
|
Description
|
Table of Contents
|
Product Details
|
About the Author
|
Colophon
|
 |
|
 |
|
|
|
Recommended for You
|
Recently Viewed
|
 |
|
By David Pogue
July 2005
Ebook: $20.99
Print & Ebook: $32.95
Print: $29.95
By Michael Bartosh
September 2006
By Scott Oaks, Henry Wong
September 2004
Ebook: $31.99
Print & Ebook: $43.95
Print: $39.95
|
Customer Reviews
6/20/2007 (8 of 8 customers found this review helpful) 5.0a great task oriented introductory/intermediate guide 7/28/2005 (6 of 6 customers found this review helpful) By linux learner from Undisclosed
|
|
|