Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


For use with all versions of Linux, including Ubuntu,™ Fedora,™ openSUSE,™ Red Hat,® Debian, Mandriva, Mint, and now OS X, too!

  • Get more done faster, and become a true Linux guru by mastering the command line!

  • Learn from hundreds of realistic, high-quality examples

  • NEW! Coverage of the Mac OS X command line and its unique tools

  • NEW! Expert primer on automating tasks with Perl

The Most Useful Linux Tutorial and Reference, with Hundreds of High-Quality Examples for Every Distribution–Now Covers OS X and Perl, Too!

To be truly productive with Linux, you need to thoroughly master shells and the command line. Until now, you had to buy two books to gain that mastery: a tutorial on fundamental Linux concepts and techniques, plus a separate reference. Now, there’s a far better solution. Renowned Linux expert Mark Sobell has brought together comprehensive, insightful guidance on the tools system administrators, developers, and power users need most, and an outstanding day-to-day reference, both in the same book.

This book is 100 percent distribution and release agnostic: You can use it with any Linux system, now and for years to come. Use Macs, too? This new edition adds comprehensive coverage of the Mac OS X command line, including essential OS X-only tools and utilities other Linux/UNIX books ignore.

Packed with hundreds of high-quality, realistic examples, this book gives you Linux from the ground up: the clearest explanations and most useful knowledge about everything from filesystems to shells, editors to utilities, and programming tools to regular expressions. Sobell has also added an outstanding new primer on Perl, the most important programming tool for Linux admins seeking to automate complex, time-consuming tasks.

A Practical Guide to Linux® Commands, Editors, and Shell Programming, Second Edition, is the only book to deliver

  • Better, more realistic examples covering tasks you’ll actually need to perform

  • Deeper insight, based on Sobell’s immense knowledge of every Linux and OS X nook and cranny

  • A start-to-finish primer on Perl for every system administrator

  • In-depth coverage of basic and advanced Linux shell programming with bash and tcsh

  • Practical explanations of 100 core utilities, from aspell to xargs–including Mac OS X specific utilities from ditto to SetFile

  • All-new coverage of automating remote backups with rsync

  • Dozens of system security tips, including step-by-step walkthroughs of implementing secure communications using ssh and scp

  • Tips and tricks for customizing the shell and using it interactively from the command line

  • Complete guides to high-productivity editing with both vim and emacs

  • A comprehensive, 286-page command reference section–now with revised and expanded indexes for faster access to the information you need

  • Instructions for updating systems automatically with apt-get and yum

  • Dozens of exercises to help you practice and gain confidence

  • And much more, including coverage of BitTorrent, gawk, sed, find, sort, bzip2, and regular expressions

Subscriber Reviews

Average Rating: 4.777777777777778 out of 5 rating Based on 9 Ratings

"A Practical Guide to Linux® Commands, Editors, and" - by syko on 11-AUG-2011
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
I am constantly referring to this book for all things bash shell and for good reason. Mark G. Sobell has put together a tomb of easily digestible bash/CLI knowledge. Much as he has done for various Linux distro's.

New to Linux or "da ole' hacker", there is content here to help you add-more/get-more control from your Linux system.

Without a doubt, over the years, this is the one book that has influenced, as well as increased my capabilities, with the Linux and the Bash shell.

    Linux usr cir. 1997, and Damn proud of it!

Report as Inappropriate

Table of Contents

 File Tree Index  •  Main Index  •  Utility Index