Synopses & Reviews
You may have seen UNIX quick-reference guides, but you've never seen anything like UNIX in a Nutshell. Not a scaled-down quick reference of common commands, UNIX in a Nutshell is a complete reference containing all commands and options, along with generous descriptions and examples that put the commands in context. For all but the thorniest UNIX problems, this one reference should be all the documentation you need.The second edition of UNIX in a Nutshell starts with thorough coverage of System V Release 3. To that, we've added the many new commands that were added to Release 4 and additional commands that were added to Solaris 2.0.Contents include:
- All user and programmer commands.
- New Korn shell documentation.
- Expanded text editing section, including GNU Emacs and nawk.
- Shell syntax (sh and csh).
- Pattern-matching syntax.
- vi and ex commands.
- sed and awk commands.
- troff and related commands and macros.
- sdb and dbx commands.
If you currently use either SVR3 or SVR4 or are planning to in the future, or if you're a Sun user facing the transition to Solaris, you'll want this book.
UNIX in a Nutshell is the most comprehensive quickref on the market, a must for any UNIX user.
Synopsis
You may have seen UNIX quick-reference guides, but you've never seen anything like "UNIX in a Nutshell. Not a scaled-down quick reference of common commands, "UNIX in a Nutshell is a complete reference containing all commands and options, along with generous descriptions and examples that put the commands in context. For all but the thorniest UNIX problems, this one reference should be all the documentation you need. The second edition of "UNIX in a Nutshell thoroughly covers System V Release 3, including commands that were added to Release 4 and additional commands that were added to Solaris 2.0. If you currently use either SVR3 or SVR4 or are planning to in the future, or if you're a Sun user facing the transition to Solaris, you'll want this book. "UNIX in a Nutshell is the most comprehensive quickref on the market, a must for any UNIX user.
Synopsis
Not a scaled-down quick-reference of common commands, UNIX in a Nutshell is a complete reference containing all commands and options, along with generous descriptions and examples that put the commands in context. For all but the thorniest UNIX problems, this one reference should be all the documentation needed. Covers System V Releases 3 and 4 and Solaris 2.0.
Description
System V ed., rev. and exp. for SVR4 and Solaris 2.0.
About the Author
Daniel Gilly joined O'Reilly Media, Inc a year after his graduation from MIT. As a staff writer, Daniel authored the2nd Edition of Unix in a Nutshell, doubling its contentsand paving the way for it to become one of O'Reilly Media's best-selling Unix titles. He revised Learning the vi Editor,co-wrote X Window System in a Nutshell, and had an editorial hand in several other books in the X Window series.
Daniel left O'Reilly after 6 years to pursue technical writing in Silicon Valley. He had a successful career with a wide range of tech companies -- from start-ups to mid-sized companies to one-time tech titanslike Netscape and Sun Microsystems -- culminating with 5 years at Google.
In 2010, Daniel retired from Silicon Valley life and moved to Palm Springs, California to enjoy the sunshine and relaxed pace of this desert oasis.
Table of Contents
Table of Contents
Preface
Audience
Scope of This Book
Conventions
Acknowledgments
Section 1. Introduction
Merging the Traditions
Bundling
What's in the Quick Ref
Beginner's Guide
Communication
Comparisons
File Management
Miscellaneous
Printing
Programming
Searching
Shell Programming
Storage
System Status
Text Processing
Troff
Guide for Users of BSD-derived Systems
Section 2. UNIX Commands
Alphabetical Summary of Commands
Section 3. The UNIX Shell: An Overview
Introduction to the Shell
Purpose of the Shell
Interactive Use
Customization of Your UNIX Session
Programming
Shell Flavors
Common Features
Differing Features
Section 4. The Bourne Shell and Korn Shell
Overview of Features
Syntax
Special Files
Filename Metacharacters
Quoting
Command Forms
Redirection Forms
Coprocesses
Variables
Variable Substitution
Built-in Shell Variables
Other Shell Variables
Arrays
Arithmetic Expressions
Operators
Examples
Command History
Line-edit Mode
The fc Command
Built-in Commands (Bourne and Korn Shell)
Job Control
Invoking the Shell
Restricted Shells
Section 5. The C Shell
Overview of Features
Syntax
Special Files
Filename Metacharacters
Quoting
Command Forms
Redirection Forms
Variables
Variable Substitution
Variable Modifiers
Predefined Shell Variables
Example .cshrc File
Environment Variables
Expressions
Operators
Examples
Command History
Command Substitution
Command Substitution Examples
Word Substitution
Word Substitution Examples
History Modifiers
History Modifier Examples
Built-in C Shell Commands
Job Control
Invoking the Shell
Section 6. Pattern Matching
Filenames Versus Patterns
Metacharacters, Listed by UNIX Program
Metacharacters
Examples of Searching
Examples of Searching and Replacing
Section 7. The Emacs Editor
Introduction
Notes on the Tables
Absolutely Essential Commands
Summary of Commands by Group
File-handling Commands
Cursor Movement Commands
Deletion Commands
Paragraphs and Regions
Stopping and Undoing Commands
Transposition Commands
Capitalization Commands
Incremental Search Commands
Word Abbreviation Commands
Buffer Manipulation Commands
Window Commands
Special Shell Characters
Indentation Commands
Centering Commands
Macro Commands
Basic Indentation Commands
Detail Information Help Commands
Help Commands
Summary of Commands by Key
Control-key Sequences
Meta-key Sequences
Summary of Commands by Name
Section 8. The Vi Editor
Review of Vi Operations
Command-line Syntax
Command Mode
Insert Mode
Syntax of Vi Commands
Status-line Commands
Movement Commands
Edit Commands
Saving and Exiting
Accessing Multiple Files
Interacting with UNIX
Macros
Miscellaneous Commands
Alphabetical List of Keys
Setting Up Vi
The :set Command
Options Used by :set
Example .exrc File
Section 9. The Ex Editor
Syntax of Ex Commands
Options
Addresses
Address Symbols
Alphabetical Summary of Ex Commands
Section 10. The Sed Editor
Command-line Syntax
Conceptual Overview
Syntax of Sed Commands
Pattern Addressing
Group Summary of Sed Commands
Alphabetical Summary of Sed Commands
Section 11. The Awk Scripting Language
Command-line Syntax
Conceptual Overview
Patterns and Procedures
Patterns
Procedures
Simple Pattern-Procedure Examples
Awk System Variables
Operators
Variables and Array Assignments
Group Listing of Awk Commands
Alphabetical Summary of Commands
Section 12. Nroff and Troff
Introduction
Command-line Invocation
Using the Requests: An Overview
Common Requests
Specifying Measurements
Requests That Cause a Line Break
Default Operation of Requests
Group Summary of Requests
Alphabetical Summary of Requests
Escape Sequences
Predefined Number Registers
Read-only Registers
Read-write Registers
Special Characters
Section 13. mm Macros
Alphabetical Summary of mm Macros
Predefined String Names
Number Registers Used in mm
Other Reserved Macro and String Names
Section 14. ms Macros
Alphabetical Summary of ms Macros
Number Registers for Page Layout
Reserved Macro and String Names
Reserved Number Register Names
Section 15. me Macros
Alphabetical Summary of me Macros
Predefined Strings
Section 16. Preprocessors
Tbl
General Coding Scheme
Tbl Macros
Options
Format
Data
A Tbl Example
Eqn
Eqn Macros
Mathematical Characters
Mathematical Text
Greek Characters
Diacritical Marks
Keywords Recognized by Eqn
Precedence
Eqn Examples
Pic
Pic Macros
Declarations
Primitives
Options
Text
Object Blocks
Macros
Positioning
Arithmetic Operators
Default Values
A Pic Example
Section 17. The SCCS Utility
Overview of Commands
Basic Operation
Creating an SCCS File
Retrieving a File
Creating New Releases and Branches
Recording Changes
Identification Keywords
Data Keywords
Alphabetical Summary of SCCS Commands
sccs and Pseudo-commands
Section 18. The RCS Utility
Overview of Commands
Basic Operation
General RCS Specifications
Keyword Substitution
Revision Numbering
Specifying the Date
Specifying States
Standard Options
Conversion Guide for SCCS Users
Alphabetical Summary of Commands
Section 19. The make Utility
Command-line Syntax
Description File Lines
Macros
Internal Macros
Macro Modifiers
Macro String Substitution
Macros with Special Handling
Special Target Names
Sample Default Macros, Suffixes, and Rules
Section 20. Program Debugging
The Sdb Debugger
Command Specifiers
Commands
The Dbx Debugger
Alphabetical Summary of Commands
Section 21. ASCII Character Set
Section 22. Command Index