A Practical Guide to Linux Commands, Editors, and Shell Programming, 2/e (Paperback)

Mark G. Sobell



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




適用於所有版本的Linux,包括Ubuntu™、Fedora™、openSUSE™、Red Hat®、Debian、Mandriva、Mint,現在也包括OS X!

- 以精通命令行為目標,更快地完成工作,成為真正的Linux專家!
- 通過數百個逼真、高質量的示例學習
- 全新!涵蓋Mac OS X命令行及其獨特工具
- 全新!專家級Perl自動化任務入門

這是最實用的Linux教程和參考書,提供了數百個高質量的示例,適用於每個發行版,現在還包括OS X和Perl!

要真正提高在Linux上的生產力,您需要徹底掌握shell和命令行。到目前為止,您需要購買兩本書才能掌握這些技能:一本關於基本Linux概念和技術的教程,以及一本獨立的參考書。現在,有一個更好的解決方案。著名的Linux專家Mark Sobell將全面而深入的指導和優秀的日常參考結合在同一本書中,這對系統管理員、開發人員和高級用戶來說都是必備的工具。

這本書完全與發行版和版本無關:您可以在任何Linux系統上使用它,現在和未來的幾年內都可以。也使用Mac?這個新版本還增加了對Mac OS X命令行的全面覆蓋,包括其他Linux/UNIX書籍忽略的必要的OS X專用工具和實用程序。



- 更好、更逼真的示例,涵蓋您實際需要執行的任務
- 基於Sobell對每個Linux和OS X細節的深入了解的更深入洞察
- 面向每個系統管理員的Perl從頭到尾的入門指南
- 深入介紹基本和高級Linux shell編程,包括bash和tcsh
- 對100個核心實用工具的實用解釋,從aspell到xargs,包括Mac OS X特定的工具,從ditto到SetFile
- 全新涵蓋使用rsync自動備份遠程系統
- 數十個系統安全提示,包括使用ssh和scp實現安全通信的逐步操作指南
- 自定義shell並從命令行交互使用的技巧和訣竅
- 完整的vim和emacs高效編輯指南
- 全面的286頁命令參考部分,現在具有修訂和擴展的索引,以便更快地獲取所需信息
- 使用apt-get和yum自動更新系統的指示
- 數十個練習,幫助您練習並增強信心