Learning the bash Shell and over one million other books are available for Amazon Kindle. Learn more

Buy New

or
Sign in to turn on 1-Click ordering.
or
Amazon Prime Free Trial required. Sign up when you check out. Learn More
Buy Used
Used - Good See details
$17.42 & eligible for FREE Super Saver Shipping on orders over $25. Details

or
Sign in to turn on 1-Click ordering.
 
   
Kindle Edition
 
   
Sell Back Your Copy
For a $9.24 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Learning the bash Shell: Unix Shell Programming (In a Nutshell (O'Reilly))
 
 
Start reading Learning the bash Shell on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Learning the bash Shell: Unix Shell Programming (In a Nutshell (O'Reilly)) [Paperback]

Cameron Newham (Author)
4.0 out of 5 stars  See all reviews (37 customer reviews)

List Price: $34.95
Price: $20.97 & eligible for FREE Super Saver Shipping on orders over $25. Details
You Save: $13.98 (40%)
  Special Offers Available
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
Want it delivered Wednesday, February 1? Choose One-Day Shipping at checkout. Details
Textbook Student FREE Two-Day Shipping for Students. Learn more

Formats

Amazon Price New from Used from
Kindle Edition $15.39  
Paperback $20.97  
Sell Back Your Copy for $9.24
Whether you buy it used on Amazon for $13.42 or somewhere else, you can sell it back through our Book Trade-In Program at the current price of $9.24.
Used Price$13.42
Trade-in Price$9.24
Price after
Trade-in
$4.18

Book Description

0596009658 978-0596009656 April 5, 2005 Third Edition

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

Special Offers and Product Promotions

  • Buy $50 in qualifying physical textbooks, get $5 in Amazon MP3 Credit. Here's how (restrictions apply)

Frequently Bought Together

Learning the bash Shell: Unix Shell Programming (In a Nutshell (O'Reilly)) + Bash Cookbook: Solutions and Examples for Bash Users (Cookbooks (O'Reilly)) + Classic Shell Scripting
Price For All Three: $78.85

Show availability and shipping details

Buy the selected items together
  • In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details

  • Bash Cookbook: Solutions and Examples for Bash Users (Cookbooks (O'Reilly)) $31.49

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Classic Shell Scripting $26.39

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details


Customers Who Bought This Item Also Bought


Editorial Reviews

From the Publisher

The first thing users of the Linux operating system come face to face with is the shell. "Shell" is the UNIX term for a user interface to the system -- something that lets you communicate with the computer via the keyboard and display. Bash, the Free Software Foundation's "Bourne Again Shell," is the default shell for Linux, the popular free UNIX-like operating system. It's also a replacement for the standard UNIX Bourne shell, which serves both as a user interface and as a programming language. Like the FSF's other tools, bash is more than a mere replacement: it extends the Bourne shell in many ways. New features include command line editing, key bindings, integrated programming features, command completion, control structures (especially the select construct, which enables you to create menus easily) and new ways to customize your environment. Whether you want to use bash for its user interface or its programming features you will find Learning the bash Shell a valuable guide. The book covers all of bash's features, both for interactive use and programming. If you are new to shell programming, Learning the bash Shell provides an excellent introduction, covering everything from the most basic to the most advanced features, like signal handling and command line processing. If you've been writing shell scripts for years, it offers a great way to find out what the new shell offers. The book is full of examples of shell commands and programs that are designed to be useful in your everyday life as a user, not just to illustrate the feature being explained. All of these examples are freely available to you online on the Internet. With this book you'll 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 --This text refers to an out of print or unavailable edition of this title.

From the Back Cover

Learning the bash Shell is the definitive guide to bash, the Free Software Foundation's "Bourne Again Shell". It's a freely available replacement for the popular UNIX Bourne shell. It is also the shell of choice for Linux users around the world. You'll find this guide valuable whether you're interested in bash as a user interface or for its powerful programming capabilities. It will teach you how to use bash's advanced command-line features, like command history, command-line editing, and command completion. Learning the bash Shell also introduces shell programming, a skill no UNIX or Linux user should be without. The book demonstrates what you can do with bash's programming features. You'll learn about flow control, signal handling, and command-line processing and I/O. There is also a chapter on debugging your bash programs. Finally, Learning the bash Shell shows you how to get bash, install it, configure it, and customize it. It also gives advice to system administrators managing bash for their user community.
--This text refers to an out of print or unavailable edition of this title.

Product Details

  • Paperback: 360 pages
  • Publisher: O'Reilly Media; Third Edition edition (April 5, 2005)
  • Language: English
  • ISBN-10: 0596009658
  • ISBN-13: 978-0596009656
  • Product Dimensions: 9.2 x 7 x 0.9 inches
  • Shipping Weight: 1 pounds (View shipping rates and policies)
  • Average Customer Review: 4.0 out of 5 stars  See all reviews (37 customer reviews)
  • Amazon Best Sellers Rank: #38,305 in Books (See Top 100 in Books)

More About the Authors

Discover books, learn about writers, read author blogs, and more.

 

Customer Reviews

37 Reviews
5 star:
 (12)
4 star:
 (19)
3 star:
 (1)
2 star:
 (4)
1 star:
 (1)
 
 
 
 
 
Average Customer Review
4.0 out of 5 stars (37 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

66 of 66 people found the following review helpful:
4.0 out of 5 stars Good Intro To Bash Use; Lacks Robust Code Examples, June 3, 2001
By 
"scriptcoder" (Chino, CA United States) - See all my reviews
This O'Reilly Publication does a good job in filling a void for a good introduction to Bash Shell scripting. Bash has become the shell script programming choice for most Unix and Linux shell programmers, because of its strengths over C shell (Csh) and other Unix-based Shell environments as a fairly robust freeware script programming language.

Strengths of the publication are the clear explanations of the bash shell programming environment, the effective use of tables to summarize basic shell language and programming constructs, UNIX-based utilities, shell environment customization, shell Syntax, Bash File Operators and control key definitions.

A chapter is devoted to edit mode capabilities (both eMacs and Vi Command-Line Editing Commands are covered and summarized effectively in clearly doucmented tables).

The book contains a number of terse script programming tasks, which provide clear examples of the material presented in the text. These program examples are reworked to provide a clear example of how Bash scripts can be modified to provide greater flexibility and reusability of Bash shell program code.

I would like to see more robust programming shell examples in the book as examples of mini-applications, which Bash is frequently used for in many Unix-based or Unix-derived platforms. The "Task 5-1" program example is an example where a good example of a program, which does an adequate job of clearly covering the use of Bash File Operators, yet the author(s) make the statement that the code is "relatively long winded".

Another area the book could address is the use of Bash in a Windows environment. I was able to port some of the programming tasks presented to a Windows 95/98 environment using the GNU Bash Version 2.03 for Windows package available on the internet.

Despite these drawbacks, I rate the book four stars on the strengths that it is the only readily-available publication, which is solely devoted to Bash shell use and programming. The O'Reilly publication is definitely worth the investment, if you are looking for a book to get you started on Bash Shell Script programming on a Unix, Linux or Windows (to a limited degree) environment.

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


27 of 27 people found the following review helpful:
4.0 out of 5 stars Strong, gently-paced intro, October 24, 2006
Amazon Verified Purchase(What's this?)
This review is from: Learning the bash Shell: Unix Shell Programming (In a Nutshell (O'Reilly)) (Paperback)
The bash shell is now the most common and featureful command shell in the Unix world. It's full capability certainly isn't obvious to a beginner facing a command prompt, but is well worth exploring. This book is a great place for the novice to start. The first chapter addresses the most fundamental question: just what is a command shell?

The ideal reader already knows at least the names of the emacs and vi editors. That much helps understand the many features and two distinct feature sets available for command line editing. I consider fancy command line editing over-rated for fluent typists, but it's there in the second chapter for all who want it and anyone can benefit from at least a little knowledge of it. After that successive chapters pull the reader deeper into the bash feature set: aliases and shell variables, scripting and shell programming, and debugging when the shell programs or functions go awry.

Since this book is aimed at the novice, Newham and Rosenblatt skip lightly over a few of the more advanced subjects. For example, exceptions and trap handling get only cursory treatment, since they get into deep weirdness very fast. The authors are honest about this shallow treatment, though, and give enough information for a novice to recognize the basics and look them up in more advanced references.

This is nicely organized for the self-taught student. As a result, it's not laid out as a programmer's reference manual - anyone who wants that kind of reference just isn't looking at the right book. For its intended reader, though, it's a great book. It gets readers off to a fast start, and lets them decide just how much they want to bite off at a time. I recommned it very highly.

//wiredweird
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


36 of 40 people found the following review helpful:
2.0 out of 5 stars Lacking examples, September 3, 1999
By A Customer
Learning the Bash Shell, should be not be called a learning book. The lack of real world examples really hurt this book. I found Unix Shells by Example a much better learning tool for the Bash Shell. This was surprising, since other learning books by O'Reilly are considerably better than this one.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews











Only search this product's reviews



Inside This Book (learn more)
Key Phrases - Statistically Improbable Phrases (SIPs): (learn more)
programmable completion facilities, exit statuses, pig script, control mode commands, breakpoint array, command exited, textual completion, pathname expansion, bash act, command substitution, directory stack, brace expansion, keyboard habits, tilde expansion, bash features, bash versions, wildcard expansion, usage exit, list breakpoints, positional parameters, shell options, shell variables, login shell, shell prints, restricted shell
Key Phrases - Capitalized Phrases (CAPs): (learn more)
Command Description, Operator Meaning, Variable Meaning, Chet Ramey, Option Meaning, Operator True, Option Description, Window System
New!
Books on Related Topics | Concordance | Text Stats
Browse Sample Pages:
Front Cover | Table of Contents | First Pages | Index | Back Cover | Surprise Me!
Search Inside This Book:




What Other Items Do Customers Buy After Viewing This Item?


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(16)
(13)
(12)

Your tags: Add your first tag
 

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   
Related forums



So You'd Like to...



Look for Similar Items by Category


Look for Similar Items by Subject