| |
| |
Introduction | |
| |
| |
Who Should Read This Book? | |
| |
| |
What You Need to Know Before Reading This Book | |
| |
| |
How This Book Is Organized | |
| |
| |
Conventions Used in This Book | |
| |
| |
| |
Introduction to UNIX | |
| |
| |
An Overview of UNIX | |
| |
| |
What Is an Operating System? | |
| |
| |
The History of UNIX | |
| |
| |
Berkeley UNIX | |
| |
| |
UNIX System V | |
| |
| |
OSF Versus UI | |
| |
| |
X-Windows and Linux | |
| |
| |
The UNIX Philosophy | |
| |
| |
What Can UNIX Do for You? | |
| |
| |
The Electronic Office | |
| |
| |
Programmer's Support Tools | |
| |
| |
| |
Getting Started: login, passwd, and who | |
| |
| |
Getting Started | |
| |
| |
Establishing Contact with the System | |
| |
| |
The Keyboard | |
| |
| |
Logging In | |
| |
| |
The Prompt Character | |
| |
| |
The Password | |
| |
| |
Logging Out | |
| |
| |
Correcting Typing Errors | |
| |
| |
Some Simple Shell Commands | |
| |
| |
The date Command | |
| |
| |
The cal Command | |
| |
| |
The who Command | |
| |
| |
The finger Command | |
| |
| |
| |
Electronic Mail and Online Help: mail, talk, and man | |
| |
| |
Working with Email | |
| |
| |
Using Either mail or mailx | |
| |
| |
Sending Mail to Yourself | |
| |
| |
Reading Your Mail | |
| |
| |
Getting Help in mail | |
| |
| |
For Advanced Users: Sending Mail | |
| |
| |
For Advanced Users: Reading Mail | |
| |
| |
For Advanced Users: Adjusting the mail Environment | |
| |
| |
Making Electronic Chit-Chat with talk | |
| |
| |
Getting More Information with help and man | |
| |
| |
| |
Files and Directories: 1s, cat, more, and pr | |
| |
| |
Files and the UNIX Directory System | |
| |
| |
Listing Directories: 1s | |
| |
| |
File and Directory Names | |
| |
| |
Listing Other Directories | |
| |
| |
Some 1s Options | |
| |
| |
Reading Files: cat | |
| |
| |
Reading Files with more | |
| |
| |
Formatting and Printing Files: pr and 1pr | |
| |
| |
Creating Files with cat and Redirection | |
| |
| |
Input and Output | |
| |
| |
More on Redirection | |
| |
| |
Redirection and Electronic Mail | |
| |
| |
Removing Files with rm | |
| |
| |
| |
The vi Screen Editor | |
| |
| |
Introduction to Editing | |
| |
| |
The Memory Buffer | |
| |
| |
Two Modes of Operation | |
| |
| |
Working with the vi Editor | |
| |
| |
Starting vi | |
| |
| |
Moving the Cursor | |
| |
| |
Text Input Mode | |
| |
| |
Deleting and Changing Text | |
| |
| |
Undoing Changes: u and U | |
| |
| |
Leaving the vi Editor | |
| |
| |
Additional vi Commands | |
| |
| |
Cursor-Positioning Commands | |
| |
| |
Screen Scrolling and Paging | |
| |
| |
Pattern Searches | |
| |
| |
Operators That Delete, Duplicate, Change, and Rearrange Text | |
| |
| |
Using the Yank and Delete Operators with the Put Command | |
| |
| |
Additional Commands and Features of vi | |
| |
| |
| |
The emacs Editor | |
| |
| |
Writing Your First Letter with emacs | |
| |
| |
The Echo Area | |
| |
| |
Basic Cursor Moves | |
| |
| |
Simple Editing: Adding and Removing Text | |
| |
| |
Saving CPU Time When Adding Text | |
| |
| |
Dealing with Line Lengths in emacs | |
| |
| |
The emacs Commands | |
| |
| |
Running an emacs Command by Using Its Long Name | |
| |
| |
Getting Help | |
| |
| |
Searching for Text | |
| |
| |
Searching for and Replacing Text | |
| |
| |
Defining Regions with Point and Mark | |
| |
| |
Formatting Text | |
| |
| |
Creating Multiple Windows | |
| |
| |
Creating Multiple Buffers | |
| |
| |
Working with Multiple Buffers and Multiple Windows | |
| |
| |
Working with Files | |
| |
| |
For Experienced Users: Customizing emacs | |
| |
| |
| |
Manipulating Files and Directories: mv, cp, and mkdir | |
| |
| |
Filenames, Pathnames, Heads, and Tails | |
| |
| |
Basic File and Directory Manipulation Commands | |
| |
| |
Directory Commands: mkdir, rmdir, cd, and pwd | |
| |
| |
File Commands: rm, cp, mv, and 1n | |
| |
| |
Comparing cp, mv, and 1n | |
| |
| |
Searching Through Files: grep | |
| |
| |
What Can You Do with a UNIX File? | |
| |
| |
Marvelous Metacharacters: Using Wildcards and Symbolic Substitutions | |
| |
| |
Directory Abbreviations: . and . . and | |
| |
| |
| |
The UNIX Shell: Command Lines, Redirection, and Shell Scripts | |
| |
| |
The Shell Command Line | |
| |
| |
Redirection | |
| |
| |
Redirecting Output to a File:] | |
| |
| |
Overriding File Protection: ]! | |
| |
| |
Redirecting and Appending Output to a File:]] | |
| |
| |
Redirecting Input from a File: [ | |
| |
| |
Combined Redirects | |
| |
| |
The Pipeline: | |
| |
| |
Split Output: tee | |
| |
| |
Job Control | |
| |
| |
Stopping and Restarting a Job: Ctrl-z and fg | |
| |
| |
Background Jobs | |
| |
| |
Multiple Jobs: jobs and bg | |
| |
| |
Job Numbers and PID Numbers | |
| |
| |
Process Status: ps | |
| |
| |
Terminating Unruly Jobs: kill | |
| |
| |
Job-Control Summary | |
| |
| |
History: A System That Remembers | |
| |
| |
Initiating Your History Service | |
| |
| |
Repeating an Earlier Command: Event Identifiers | |
| |
| |
Adding to a History Command | |
| |
| |
Simple Command-Line Editing | |
| |
| |
Selecting Parts of a Command Line: Word Identifiers | |
| |
| |
Customizing UNIX: The Alias | |
| |
| |
Establishing a Simple Alias | |
| |
| |
Permanent Aliases | |
| |
| |
Aliases with Arguments | |
| |
| |
Aliases for Compound Commands | |
| |
| |
Making Aliases for Complex Commands: \!* | |
| |
| |
Aliases in Aliases | |
| |
| |
The Filename Completion Service | |
| |
| |
Shell Scripts | |
| |
| |
Multiple Commands | |
| |
| |
Command-Line Arguments for Shell Scripts | |
| |
| |
Shell Variables | |
| |
| |
Built-In Variables | |
| |
| |
Obtaining the Value of a Variable | |
| |
| |
Setting Shell Variables | |
| |
| |
Customizing Your Environment: Your .login and .cshrc Files | |
| |
| |
Shell Metacharacters | |
| |
| |
Neutralizing Metacharacters | |
| |
| |
| |
File-Management Commands and Others: wc, sort, 1pr, and chmod | |
| |
| |
File-Management Commands | |
| |
| |
Word Counting: wc | |
| |
| |
File Checking: tail and head | |
| |
| |
Sorting: sort | |
| |
| |
Redundancy Elimination: uniq | |
| |
| |
Making a Printed Copy | |
| |
| |
1pr, 1pq, and 1prm | |
| |
| |
Choosing a Printer | |
| |
| |
Permissions: chmod | |
| |
| |
Messages: mesg | |
| |
| |
Commands for Your Terminal: tty and stty | |
| |
| |
Using the UNIX Clock: time and calendar | |
| |
| |
@@time | |
| |
| |
@@calendar | |
| |
| |
| |
More Text Processing: join, sed, and nroff | |
| |
| |
UNIX Filters | |
| |
| |
Combining Files: join | |
| |
| |
Checking Your Spelling: spell | |
| |
| |
The sed Stream Editor | |
| |
| |
@@sed Basics | |
| |
| |
@@sed Editing Instructions | |
| |
| |
Specifying Lines | |
| |
| |
@@sed Command Highlights | |
| |
| |
Pattern Matching in sed | |
| |
| |
Simple sed Solutions | |
| |
| |
Multiple Commands | |
| |
| |
Tags | |
| |
| |
Shell Scripts and sed | |
| |
| |
Text Formatting with nroff and troff | |
| |
| |
| |
@@nroff | |
| |
| |
| |
@@mm Macros | |
| |
| |
Making a Report | |
| |
| |
| |
Naked nroff | |
| |
| |
Formatting Helpmates: tbl and eqn | |
| |
| |
| |
Information Processing: grep, find, and awk | |
| |
| |
Finding Stuff: grep and find | |
| |
| |
File Searching: grep | |
| |
| |
Finding Files: find | |
| |
| |
For Advanced Users: More Complex Forms of find | |
| |
| |
Revisiting sort: Using Fields | |
| |
| |
Fields and Field Separators | |
| |
| |
Using Fields with sort | |
| |
| |
Multiple Fields | |
| |
| |
Subdividing a Field | |
| |
| |
Flag Options and Fields | |
| |
| |
A Quick Peek at awk | |
| |
| |
| |
Advanced Editing Techniques | |
| |
| |
The Last Command | |
| |
| |
Using Abbreviations for Faster Typing | |
| |
| |
Using the map Command to Create Macros | |
| |
| |
Editing Multiple Files | |
| |
| |
Running Shell Commands | |
| |
| |
Using Advanced Search-and-Replace Commands | |
| |
| |
Search and Replace with vi | |
| |
| |
Customizing the vi Editor | |
| |
| |
The .exrc File | |
| |
| |
| |
ASCII Table | |
| |
| |
| |
Glossary | |
| |
| |
| |
Summary of UNIX Abbreviations | |
| |
| |
Shell Abbreviations for Files and Directories | |
| |
| |
Abbreviations Used by grep, ed, and edit | |
| |
| |
Abbreviations Used by the C-Shell History Function | |
| |
| |
References to Complete Events | |
| |
| |
References to Words within an Event | |
| |
| |
Some Additional Conventions | |
| |
| |
Shell-Script Abbreviations | |
| |
| |
@@awk Abbreviations | |
| |
| |
| |
UNIX Command Reference | |
| |
| |
Starting Up | |
| |
| |
Manipulating Files and Directories | |
| |
| |
Communication | |
| |
| |
Housekeeping Utilities | |
| |
| |
Online Help | |
| |
| |
Text Processing and Formatting | |
| |
| |
Information Handling | |
| |
| |
Running Jobs and Programs | |
| |
| |
Adjusting Your Environment | |
| |
| |
| |
@@vi Command Reference | |
| |
| |
Modes | |
| |
| |
Cursor-Movement Commands | |
| |
| |
Text-Entering Commands | |
| |
| |
Text-Deletion Commands | |
| |
| |
Text Alteration Commands | |
| |
| |
Search Commands | |
| |
| |
The Last Command | |
| |
| |
Text-Moving Commands | |
| |
| |
Scopes to Use with Commands | |
| |
| |
Saving Text and Quitting the Editor | |
| |
| |
Screen Enhancement Options | |
| |
| |
| |
Entering and Exiting the UNIX Shell | |
| |
| |
| |
Answers to Chapter Review Questions | |
| |
| |
Index | |