From Bash to Z Shell: Conquering the Command Line

by Apress

$34.99
buy from amazon.com
Average Rating: * * * * half star
Sales Rank:511218 (lower is better)
Price Used:$23.89
Shipping:Free Shipping on most orders over $25*
Availability:Usually ships in 24 hours
Label:Apress
UPC:689253157664
Pages:472
Binding:Paperback
Publication Date:2004-11-15
Published By:Apress
ASIN:1590593766
Category:Book

Authors

Editorial Reviews and Product Descriptions

Product Description

Some areas are covered in other books, but this one goes into some little-seen side streets and alleyways to show you the shortcuts to more efficient use of the shell.

— Raymond Lodato, Slashdot Contributor

...The material here is invaluable: you're not going to get it from the manual pages! I strongly recommend it.

— Ernest J. Friedman-Hill, JavaRanch Sheriff

This is a totally neat idea for a book... the command line gets addictive quickly.

— Bill Ryan, Bill's House O Insomnia

This comprehensive, hands-on guide focuses on two of the most popular and feature-rich shells, bash and zsh. From Bash to Z Shell: Conquering the Command Line is a book for all skill levels. Novices will receive an introduction to the features of shells and power users will get to explore the benefits of zshone of the most powerful, versatile shells ever written. Intermediate users will uncover hints, recipes, and ideas to enhance their skill sets.

The book covers shell programming, but is unique in its thorough coverage of using shells interactivelya powerful and time-saving alternative to windows and a mouse. This strong author team has written an immediately useful book, packed with examples and suggestions that users of Unix, Linux, Mac OS X and Microsoft Windows can readily apply.

Customer Reviews

The Comeback of the Command Line - Reviewed on 2008-04-27
* * * * *
1 customer found this review helpful.

This is an excellent book, even though like a lot of folks, I bought it for the wrong reason. This book isn't really specific to the title, it's actually about the subtitle. Bash and Zsh are major characters, but this book is about using and mastering the command line, in either UNIX or Linux.

I don't know why the authors would target a book at me personally, so I assume there are many others out there who were once masters of the DOS and UNIX command lines when their companies made the decision (sometimes regretfully) to move "up" to Windows and Windows NT. Now here I am, over a decade later fondly recalling the power and well, frankly the fun, of being able to control my computer and the OS that runs it with commands customized specifically to my needs.

If you miss DOS batch files and UNIX scripts, being able to automate functions that take dozens of repetitive steps in a GUI like Windows or CDE, then this book was written for you as well. The free, powerful open source UNIX-based Operating Systems like Solaris and FreeBSD or the many Linux versions have given the command line it's well-deserved comeback. The authors of "BASH to Z Shell, Conquering the Command Line," make the assumption that the reader has more than basic computer skills, but just in case, starts with the premise that we may have even forgotten why the command line is even desirable.

Each of the early chapters on the basics warns the reader of the level of coverage and explains where to go to find the in depth version. I remembered pipes and redirection, but read the early stuff anyway and was rewarded with the fun reminder of just how powerful the command line can be. How about one command that can list every program on your system, sort it alphabetically, trim off any text and blank spaces you don't want and print it all in nice neat columns either onscreen or to a file? Ok, so nobody really needs such a list, but ya gotta admit it's pretty cool to be able to do all that with a single command. Then they launch into a discussion of for and foreach loops -- that's the basic stuff at the beginning mind you.

This is a book that's destined to be dog-eared. The spine will be wrinkled from sitting on the desk next to my keyboard as I construct a list of aliases that will simplify my life and then build a menu so I can remember them all. If you're just getting back into UNIX or have newly discovered Linux, this could be an invaluable tool for the journey.
A must read for casual shell users. - Reviewed on 2008-01-18
* * * * *
3 customers found this review helpful.

I work on multiple Unix platforms all day long. I had never really taken the time to learn about the shells, but I had picked up the basics over time. I knew how to run commands, string them together with pipes, and redirect their output into files. So when I tell you that I started learning new things in the first chapter of From Bash to Z Shell, you will know the coverage is in depth. If you are a casual shell user, or even less experienced, this book has a lot to offer you.

From Bash to Z Shell is organized into three parts. Part one is an introduction to shell basics. It focuses on typical interactions with a shell including all of the things I mentioned knowing before reading this book. There is surprisingly good depth even here though and I doubt that anyone short of a power user could make it through this section without picking up a new trick or two. I learned multiple things from each chapter in this section.

In part two, each chapter takes a single aspect of the shells and really focuses in on just that. You will find chapters about the startup files each shell invokes as well as shell command histories. This is comprehensive coverage that really gets you to understand how things work as well as how to tune them to your personal tastes. You are even less likely to not pickup great tips in here.

The third and final part of the book turns to shell programming. While I suspect that plenty of users interact with a shell regularly without getting much into scripting them, there are still useful tidbits in here for them too. For example, after reading this section, I added some code to my startup file to customize my shell's completion functionality. I can now tab-complete the server names used by my workplace and even file system paths on those servers. This section also has a very good chapter on variables that will definitely help in day to day usage. A couple of the final chapters in here are heavily slanted towards or exclusively about the Z Shell though, so those chapters don't hold much for users of other shells.

As the title suggests, the book extensively covers both the Bash shell, which seems to be the standard default on many Unix systems now, and the feature-rich Z Shell that power users seem to favor. Surprisingly though, the book does talk about many other shells. In the first part especially, features tend to be described for more than just the two shells with top billing. This falls off in the later parts to some extent though. Also, the authors clearly aren't fans of the C Shell or its derivative the T C-Shell, so fans of those will want to look elsewhere. Windows receives some screen time, but only from the angle of running Unix-like environments and shells on it. You won't find coverage of the native Windows shells in these pages.

The book is quite good at covering the similarities of the shells. They frequently tell you when some command will work unchanged in both Bash and the Z Shell and they always do their best to give two equivalent commands when there are differences. This makes the shell knowledge you pick up from reading quite portable. It's also nice for those who don't know much about the differences between the shells and thus are trying to learn enough to pick the right one for them. It helped me choose a favorite. The only downside of this is that the transitions seem to become less smooth late in the book and I found myself wondering if we were still talking about Bash or had moved on to Z Shell a few times. This is a minor complaint though.

Beyond covering the shells well, the book can also help you better understand the design of the Unix operating system. It has some great asides on things like process forking and child process inheritance, special files and devices, and terminal drivers. Seeing these items through their interactions with a shell can make them significantly easier to grasp.

The writing style of this book is very natural. That's important since it distills so much information into every page, you could easily begin to feel overwhelmed. Luckily, that wasn't the case at all for me. I found the material to be presented so naturally that I absorbed it with ease. The book also has abundant cross references and a strong index which will make it great to reference later.

The final measure of a book like this turns out to be how much it changed your daily work habits. I've already noticed dramatic differences. I'm using shell loops at the command-line now to process many files at once; I actually understand shell quoting and when to use which types of quotes and escapes to get the desired effect; I can easily strip off a file extension or get a directory name from a full path when I need one; I make constant use of the command history now whether I'm searching for a past command, correcting a typo, or just pulling a single argument out of a previous command for reuse in a new command; and I've written a few shell functions to provide shortcuts to my common tasks. I just naturally began doing these things too, I didn't have to work at it a lot. From Bash to Z Shell just raised my understanding that much. To me, that's a big selling point.
Great Info! - Reviewed on 2006-02-06
* * * * *
8 customers found this review helpful.

I've just finished reading From Bash to Z Shell from APress Publishing. It's taught this Linux NetAdmin several new tricks, and should be an addition to any Admin's bookshelf. It'll fit nicely next to your O'Reilly's.

I initially bought the book to lean the Z Shell (zsh), but decided that I'll stick with good 'ole Bash for a little longer. The tricks I've learned through this book about Bash quenches my needs for the moment. This book teaches you about essential techniques such as CDPATH, History options, key bindings, editing modes, and tons more. I've only read it only once, but I have already dog-eared 20 pages. My ~/.bashrc, and ~/.inputrc are in full swing with many new shortcuts! I highly recommend this book!!
Must have - Reviewed on 2005-09-23
* * * * *
8 customers found this review helpful, 1 did not.

I bought this book for two reasons: To get a quick view of the Z shell, which was excellent, and to complement the many books on Bash that I have. This is where it really shone. I found information here, and quickly, that I could not find elsewhere. I would recommend it for all Bash programmers. This comes from a Korn shell bigot, too.
stimulating! - Reviewed on 2005-05-19
* * * * *
5 customers found this review not to be helpful.
This book is a must for any sysadmin or power user. It is definitely not for the novice. It's writing structure is almost akin to what it would be like if you could read pthreads! I am so happy with this book.
Read More Customer Reviews »
Go To Amazon Product Page

* - See Amazon Product Page for shipping and pricing details.


Book Subjects