This quick reference has been reworked to present you with the current state of Unix. Featuring chapter overviews, in-depth command coverage, and specific examples, it's the perfect supplement for Unix users and programmers. New topics include package management programs, source code management systems, and the Solaris 10, GNU/Linux, and Mac OS X systems.
-
Commands and Shells
-
Chapter 1 Introduction
- Unix in the 21st Century
- Obtaining Compilers
- Building Software
- What's in the Quick Reference
- Beginner's Guide
- Solaris: Standard Compliant Programs
-
Chapter 2 Unix Commands
- Introduction
- Alphabetical Summary of Common Commands
- Alphabetical Summary of Solaris Commands
- Alphabetical Summary of GNU/Linux Commands
- Alphabetical Summary of Mac OS X Commands
- Alphabetical Summary of Java Commands
-
Chapter 3 The Unix Shell: An Overview
- Introduction to the Shell
- Purpose of the Shell
- Shell Flavors
- Shell Source Code URLs
- Common Features
- Differing Features
-
Chapter 4 The Bash and Korn Shells
- Overview of Features
- Invoking the Shell
- Syntax
- Functions
- Variables
- Arithmetic Expressions
- Command History
- Job Control
- Command Execution
- Restricted Shells
- Built-in Commands (Bash and Korn Shells)
-
Chapter 5 tcsh: An Extended C Shell
- Overview of Features
- Invoking the Shell
- Syntax
- Variables
- Expressions
- Command History
- Command-Line Manipulation
- Job Control
- Built-in Commands
-
Chapter 6 Package Management
- Linux Package Management
- The Red Hat Package Manager
- Yum: Yellowdog Updater Modified
- up2date: Red Hat Update Agent
- The Debian Package Manager
- Mac OS X Package Management
- Solaris Package Management
-
-
Text Editing and Processing
-
Chapter 7 Pattern Matching
- Filenames Versus Patterns
- Metacharacters
- Metacharacters, Listed by Unix Program
- Examples of Searching
-
Chapter 8 The Emacs Editor
- Conceptual Overview
- Command-Line Syntax
- Summary of Commands by Group
- Summary of Commands by Key
- Summary of Commands by Name
-
Chapter 9 The vi, ex, and vim Editors
- Conceptual Overview
- Command-Line Syntax
- Review of vi Operations
- vi Commands
- vi Configuration
- ex Basics
- Alphabetical Summary of ex Commands
-
Chapter 10 The sed Editor
- Conceptual Overview
- Command-Line Syntax
- Syntax of sed Commands
- Group Summary of sed Commands
- Alphabetical Summary of sed Commands
-
Chapter 11 The awk Programming Language
- Conceptual Overview
- Command-Line Syntax
- Patterns and Procedures
- Built-in Variables
- Operators
- Variable and Array Assignment
- User-Defined Functions
- Gawk-Specific Features
- Implementation Limits
- Group Listing of awk Functions and Commands
- Alphabetical Summary of awk Functions and Commands
- Output Redirections
- Source Code
-
-
Software Development
-
Chapter 12 Source Code Management: An Overview
- Introduction and Terminology
- Usage Models
- Unix Source Code Management Systems
- Other Source Code Management Systems
-
Chapter 13 The Revision Control System
- Overview of Commands
- Basic Operation
- General RCS Specifications
- Alphabetical Summary of Commands
-
Chapter 14 The Concurrent Versions System
- Conceptual Overview
- Command-Line Syntax and Options
- Dot Files
- Environment Variables
- Keywords and Keyword Modes
- Dates
- CVSROOT Variables
- Alphabetical Summary of Commands
-
Chapter 15 The Subversion Version Control System
- Conceptual Overview
- Obtaining Subversion
- Using Subversion: A Quick Tour
- The Subversion Command Line Client: svn
- Repository Administration: svnadmin
- Examining the Repository: svnlook
- Providing Remote Access: svnserve
- Other Subversion Components
-
Chapter 16 The GNU make Utility
- Conceptual Overview
- Command-Line Syntax
- Makefile Lines
- Macros
- Special Target Names
- Writing Command Lines
-
Chapter 17 The GDB Debugger
- Conceptual Overview
- Command-Line Syntax
- Initialization Files
- GDB Expressions
- The GDB Text User Interface
- Group Listing of GDB Commands
- Summary of set and show Commands
- Summary of the info Command
- Alphabetical Summary of GDB Commands
-
Chapter 18 Writing Manual Pages
- Introduction
- Overview of nroff/troff
- Alphabetical Summary of man Macros
- Predefined Strings
- Internal Names
- Sample Document
-
-
Commands and Shells
-
Appendix A ISO 8859-1 (Latin-1) Character Set
-
Appendix B Bibliography
- Unix Descriptions and Programmer's Manuals
- Unix Internals
- System and Network Administration
- Programming with the Unix Mindset
- Programming Languages
- TCP/IP Networking
- Software Development
- Emacs
- Standards
- O'Reilly Books
-
-
Colophon
- Title:
- Unix in a Nutshell, Fourth Edition
- By:
- Arnold Robbins
- Publisher:
- O'Reilly Media
- Formats:
-
- Ebook
- Safari Books Online
- Print Release:
- October 2005
- Ebook Release:
- June 2009
- Pages:
- 912
- Print ISBN:
- 978-0-596-10029-2
- | ISBN 10:
- 0-596-10029-9
- Ebook ISBN:
- 978-0-596-15915-3
- | ISBN 10:
- 0-596-15915-3
About the Author
Arnold Robbins, an Atlanta native, is a professional programmer and technical author. He is also a happy husband, the father of four very cute children, and an amateur Talmudist (Babylonian and Jerusalem). Since late 1997, he and his family have been living in Israel.
Arnold has been working with Unix systems since 1980, when he was introduced to a PDP-11 running a version of Sixth Edition Unix. His experience also includes multiple commercial Unix systems, from Sun, IBM, HP, and DEC. He has been working with GNU/Linux systems since 1996, and for this book was introduced to the joys of the Macintosh. (iTunes is now his current favorite "killer app.")
Arnold has also been a heavy awk user since 1987, when he became involved with gawk, the GNU project's version of awk. As a member of the POSIX 1003.2 balloting group, he helped shape the POSIX standard for awk. He is currently the maintainer of gawk and its documentation.
In previous incarnations he has been a systems administrator and a teacher of Unix and networking Continuing Education classes. He has also had more than one poor experience with start-up software companies, which he prefers not to think about anymore. These days he writes high-end Command and Control related software for a leading Isreali software compnay. One day he hopes to put up his own web site at http://www.skeeve.com. O'Reilly has been keeping him busy; he is author and/or coauthor of these bestselling titles: Learning the vi Editor, Effective awk Programming, sed & awk, Classic Shell Scripting, and several pocket references.
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 Unix in a Nutshell, Fourth Edition, is a tarsier, a nocturnal mammal related to the lemur. Its generic name, Tarsius, is derived from the animal's very long ankle bone, the tarsus. The tarsier is a native of the East Indies jungles from Sumatra to the Philippines and Sulawesi, where it lives in the trees, leaping from branch to branch with extreme agility and speed.
A small animal, the tarsier's body is only 6 inches long, followed by a 10-inch tufted tail. It is covered in soft brown or grey silky fur, has a round face, and huge eyes. Its arms and legs are long and slender, as are its digits, which are tipped with rounded, fleshy pads to improve the tarsier's grip on trees. Tarsiers are active only at night, hiding during the day in tangles of vines or in the tops of tall trees. They subsist mainly on insects, and though very curious animals, tend to be loners.
Colleen Gorman was the production editor and the copyeditor for Unix in a Nutshell, Fourth Edition. Genevieve d'Entremont and Mary Brady provided quality control. Ellen Troutman 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. The back cover illustration is by J.D. "Illiad" Frazer.
David Futato designed the interior layout. This book was converted by Keith Fahlgren to FrameMaker 5.5.6 with a format conversion tool created by Erik Ray, Jason McIntosh, Neil Walls, and Mike Sierra that uses Perl and XML technologies. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSans Mono Condensed. The illustrations that appear in the book were produced by Robert Romano, Jessamyn Read, and Lesley Borash using Macromedia FreeHand MX and Adobe Photoshop CS. The tip and warning icons were drawn by Christopher Bing. This colophon was written by Michael Kalantarian.




