Shell Programming in Unix, Linux and OS X (the Fourth Edition of Kochan and Wood's classic Unix Shell Programming tutorial) can help any modern Unix, Linux, or OS X user get more done faster with their operating system of choice. One of the world's most respected Unix programming books, it has been updated throughout to fully address today's widely-used platforms, including Oracle Solaris, Mac OS X and Linux.
Table of Contents:
1 A Quick Review of the Basics
Some Basic Commands
Displaying the Date and Time: The date Command
Finding Out Who’s Logged In: The who Command
Echoing Characters: The echo Command
Working with Files
Listing Files: The ls Command
Displaying the Contents of a File: The cat Command
Counting the Number of Words in a File: The wc Command
Command Options
Making a Copy of a File: The cp Command
Renaming a File: The mv Command
Removing a File: The rm Command
Working with Directories
The Home Directory and Pathnames
Displaying Your Working Directory: The pwd Command
Changing Directories: The cd Command
More on the ls Command
Creating a Directory: The mkdir Command
Copying a File from One Directory to Another
Moving Files Between Directories
Linking Files: The ln Command
Removing a Directory: The rmdir Command
Filename Substitution
The Asterisk
Matching Single Characters
Filename Nuances
Spaces in Filenames
Other Weird Characters
Standard Input/Output, and I/O Redirection
Standard Input and Standard Output
Output Redirection
Input Redirection
Pipes
Filters
Standard Error
More on Commands
Typing More Than One Command on a Line
Sending a Command to the Background
The ps Command
Command Summary
2 What Is the Shell?
The Kernel and the Utilities
The Login Shell
Typing Commands to the Shell
The Shell’s Responsibilities
Program Execution
Variable and Filename Substitution
I/O Redirection
Hooking up a Pipeline
Environment Control