| |
| |
What Is Unix? | |
| |
| |
Unix History and Background | |
| |
| |
The Rise of the Operating System | |
| |
| |
C and Unix | |
| |
| |
The Growth of Unix | |
| |
| |
Unix Today | |
| |
| |
Unix as Cultural Phenomenon | |
| |
| |
The Free Software Movement | |
| |
| |
Linux and FreeBSD | |
| |
| |
The Open Source Movement | |
| |
| |
Flavors of Unix | |
| |
| |
BSD versus SysV | |
| |
| |
The Unix Philosophy | |
| |
| |
Basic Unix Concepts | |
| |
| |
What Is an Operating System? | |
| |
| |
Structure of a Unix Operating System | |
| |
| |
The Kernel | |
| |
| |
The Shell | |
| |
| |
The File System | |
| |
| |
Users | |
| |
| |
Accounts | |
| |
| |
The Superuser | |
| |
| |
Logging into Your Account | |
| |
| |
Logging out of Your account | |
| |
| |
Understanding Unix Commands | |
| |
| |
The Shell Prompt | |
| |
| |
What the Prompt Tells You | |
| |
| |
Anatomy of a Command | |
| |
| |
The Command Word | |
| |
| |
Arguments and Options | |
| |
| |
Input and Output Redirection | |
| |
| |
Redirecting Output | |
| |
| |
Redirecting Input | |
| |
| |
Pipes | |
| |
| |
Command Substitution | |
| |
| |
The File System | |
| |
| |
File System Types | |
| |
| |
EXT2 | |
| |
| |
UFS | |
| |
| |
FAT | |
| |
| |
Files and Directories | |
| |
| |
What Is a File? | |
| |
| |
Types of Files | |
| |
| |
Text Files | |
| |
| |
Binary Files | |
| |
| |
Directories | |
| |
| |
Links | |
| |
| |
Device Files | |
| |
| |
Named Pipes | |
| |
| |
Directories | |
| |
| |
File Permissions | |
| |
| |
The chmod Command | |
| |
| |
Finding Yourself on the Machine | |
| |
| |
Your Home Directory | |
| |
| |
The pwd Command | |
| |
| |
Moving Around the File System | |
| |
| |
Navigating the File System | |
| |
| |
Changing Directories | |
| |
| |
Learning the Contents of a Directory | |
| |
| |
Creating and Destroying Files and Directories | |
| |
| |
Creating a Directory | |
| |
| |
Creating a File | |
| |
| |
Removing a File | |
| |
| |
System Directories | |
| |
| |
Making Sense of What You See | |
| |
| |
The /bin Directory | |
| |
| |
The /dev Directory | |
| |
| |
The /etc Directory | |
| |
| |
The /home Directory | |
| |
| |
The /lib Directory | |
| |
| |
The /sbin Directory | |
| |
| |
The /tmp Directory | |
| |
| |
The /usr Directory | |
| |
| |
The /var Directory | |
| |
| |
Jobs and Processes | |
| |
| |
Keeping Track of Running Processes | |
| |
| |
Foreground and Background Processes | |
| |
| |
Managing Processes | |
| |
| |
Managing Output | |
| |
| |
Moving Jobs between Foreground and Background | |
| |
| |
nice and renice | |
| |
| |
The /proc Directory | |
| |
| |
The Screen Program | |
| |
| |
The Shell Environment | |
| |
| |
Major Unix Shells | |
| |
| |
The Bourne (Again) Shell | |
| |
| |
The Bourne Shell | |
| |
| |
The Korn Shell | |
| |
| |
The C Shells | |
| |
| |
The Z Shell | |
| |
| |
Other Unix Shells | |
| |
| |
scsh | |
| |
| |
rc and es | |
| |
| |
The Perl Shell | |
| |
| |
Environment Variables | |
| |
| |
Variables | |
| |
| |
Common bash Environment Variables | |
| |
| |
USR | |
| |
| |
MAIL | |
| |
| |
PS1 | |
| |
| |
HOSTNAME | |
| |
| |
PATH | |
| |
| |
Changing Environment Variables | |
| |
| |
Run Control Files | |
| |
| |
System-wide Run Control Files | |
| |
| |
Personal Run Control Files | |
| |
| |
Run Control Files in Other Shells | |
| |
| |
The vi Editor | |
| |
| |
What Is Text? | |
| |
| |
Text Editors | |
| |
| |
Line Editors vs. Visual Editors | |
| |
| |
The vi Text Editor | |
| |
| |
vi's Modes | |
| |
| |
Insert Mode | |
| |
| |
Edit Mode | |
| |
| |
Using Insert Mode | |
| |
| |
Using Edit Mode | |
| |
| |
Editing in vi | |
| |
| |
Copying and Pasting | |
| |
| |
Deleting Text | |
| |
| |
Search and Replace | |
| |
| |
Abbreviations and Macros | |
| |
| |
How to Create an Abbreviation | |
| |
| |
How to Create a Macro | |
| |
| |
The Set Command | |
| |
| |
vi Run Control Files | |
| |
| |
Setting Your Preferences in vi | |
| |
| |
Saving and Exiting vi | |
| |
| |
Other Text Editors | |
| |
| |
GNU Emacs | |
| |
| |
Starting GNU Emacs | |
| |
| |
The GNU Emacs Screen | |
| |
| |
Control and Meta Sequences | |
| |
| |
Buffers | |
| |
| |
Windows | |
| |
| |
Saving and Exiting | |
| |
| |
Fico | |
| |
| |
joe | |
| |
| |
NEdit | |
| |
| |
Internet Applications | |
| |
| |
Electronic Mail | |
| |
| |
Electronic Mail Protocols | |
| |
| |
fetchmail | |
| |
| |
The $MAIL Variable | |
| |
| |
Electronic Mail Clients | |
| |
| |
mail | |
| |
| |
ELM | |
| |
| |
Configuring ELM | |
| |
| |
PINE | |
| |
| |
Configuring PINE | |
| |
| |
Graphical Electronic Mail Programs | |
| |
| |
The World Wide Web | |
| |
| |
Lynx | |
| |
| |
Netscape | |
| |
| |
Mozilla | |
| |
| |
Opera | |
| |
| |
USENET News | |
| |
| |
trn | |
| |
| |
Networking I: Introduction to Unix Networking | |
| |
| |
Remote Access and File Transfer | |
| |
| |
telnet, rlogin, rcp and rsh: Why Nobody Uses Them Anymore | |
| |
| |
telnet and rlogin | |
| |
| |
rsh | |
| |
| |
rcp | |
| |
| |
A Security Note | |
| |
| |
Secure Tools | |
| |
| |
ssh | |
| |
| |
scp | |
| |
| |
Basic Networking Concepts | |
| |
| |
How Networks Operate | |
| |
| |
TCP/IP | |
| |
| |
IP Numbers | |
| |
| |
Name Resolution | |
| |
| |
Networking Hardware and Software | |
| |
| |
Modems | |
| |
| |
Ethernet | |
| |
| |
Hubs | |
| |
| |
Routers | |
| |
| |
Cable and DSL | |
| |
| |
Networking II: Fundamentals of Unix Networking | |
| |
| |
LANs, WANs, and Internets | |
| |
| |
Local Area Networks | |
| |
| |
Wide Area Networks | |
| |
| |
Internets | |
| |
| |
Network Topology | |
| |
| |
The Bus Topology | |
| |
| |
The Ring Topology | |
| |
| |
The Hub Topology | |
| |
| |
Ethernet Networking | |
| |
| |
Configuring Ethernet under Unix | |
| |
| |
Routers, Gateways, and DNS | |
| |
| |
Defining Network Default Routes | |
| |
| |
DNS | |
| |
| |
Dial-up Networking | |
| |
| |
Case Study: Setting Up a Simple Network | |
| |
| |
Chapter 12: Shell Programming I: Introduction to Shell Programming | |
| |
| |
What Is Shell Programming? | |
| |
| |
Automating Repetitive Tasks | |
| |
| |
Making the Complex Simple | |
| |
| |
Programs and Scripts | |
| |
| |
Anatomy of a Shell Program | |
| |
| |
Invoking the Shell | |
| |
| |
Comments | |
| |
| |
Commands | |
| |
| |
Data | |
| |
| |
Flow Control | |
| |
| |
Shell Programming II: Variables and Flow Control | |
| |
| |
Shell Program Basics | |
| |
| |
What Is a Variable? | |
| |
| |
Variable Names | |
| |
| |
Variable Types | |
| |
| |
Assigning Variables | |
| |
| |
The $ Operator | |
| |
| |
Variable Interpolation | |
| |
| |
Special Variables | |
| |
| |
Conditional Flow Control | |
| |
| |
The if-then Construct | |
| |
| |
The if-then-else Construct | |
| |
| |
The if-then-elif-then Construct | |
| |
| |
The Case Construct | |
| |
| |
Iterative Flow Control | |
| |
| |
The while Loop | |
| |
| |
The until Loop | |
| |
| |
The for Loop | |
| |
| |
The select Statement | |
| |
| |
Shell Programming III: Regular Expressions | |
| |
| |
grep, sed, and awk | |
| |
| |
grep | |
| |
| |
grep Metacharacters | |
| |
| |
grep Meta-"noncharacters" | |
| |
| |
"Anti-meta-noncharacters" | |
| |
| |
The Pluralizer | |
| |
| |
sed | |
| |
| |
Line Addresses | |
| |
| |
sed Scripts | |
| |
| |
sed Commands | |
| |
| |
awk | |
| |
| |
Changing the Field Separator | |
| |
| |
Using Pattern Matching with awk | |
| |
| |
awk Scripts | |
| |
| |
Shell Programming IV: Signals and Status | |
| |
| |
Exit Status | |
| |
| |
Creating Exit Status | |
| |
| |
Signals | |
| |
| |
Unique Identifiers | |
| |
| |
Sending Signals | |
| |
| |
Signal Traps | |
| |
| |
Pulling It All Together | |
| |
| |
Selecting Techniques | |
| |
| |
Basic System Administration: Part I | |
| |
| |
The System Administrator | |
| |
| |
Managing Users | |
| |
| |
Adding Users | |
| |
| |
Deleting Users | |
| |
| |
Managing User Groups | |
| |
| |
Disk Management | |
| |
| |
What Is a Disk? | |
| |
| |
Disk Partitions | |
| |
| |
The Unix Filesystem | |
| |
| |
Mounting Directories and Devices | |
| |
| |
Mounting Local Partitions | |
| |
| |
Mounting Remote Devices | |
| |
| |
Backups | |
| |
| |
System Security | |
| |
| |
Physical Security | |
| |
| |
Internal Security | |
| |
| |
External Security | |
| |
| |
Password Security | |
| |
| |
Basic System Administration: Part II | |
| |
| |
Managing Software | |
| |
| |
Installing Software from Source Code | |
| |
| |
Getting and Unpacking the Package | |
| |
| |
Reading the Documentation | |
| |
| |
Configuring the Installation | |
| |
| |
Compiling the Software | |
| |
| |
Package Management Systems | |
| |
| |
Case in Point: RPM | |
| |
| |
Build | |
| |
| |
Architecture | |
| |
| |
Printer Administration | |
| |
| |
Working with CUPS | |
| |
| |
Adding a Printer | |
| |
| |
Controlling Printers | |
| |
| |
Network Printing | |
| |
| |
The X Window System | |
| |
| |
What Is the X Window System? | |
| |
| |
How X Windows Works | |
| |
| |
Features of X Windows | |
| |
| |
Window Managers and Desktop Environments | |
| |
| |
Installing and Starting X | |
| |
| |
X Windows and Networks | |
| |
| |
X across the Internet | |
| |
| |
Customizing the X Environment | |
| |
| |
Fonts | |
| |
| |
Font Servers | |
| |
| |
Colors | |
| |
| |
Hex Values and Color Names | |
| |
| |
X Windows and Security | |
| |
| |
Remote Access | |
| |
| |
Ports and Access | |
| |
| |
X Windows and Adaptive User Environments | |
| |
| |
Running Servers | |
| |
| |
What Is a Service? | |
| |
| |
Selecting Services | |
| |
| |
World Wide Web Services | |
| |
| |
Apache | |
| |
| |
Other Web Servers | |
| |
| |
boa | |
| |
| |
jigsaw | |
| |
| |
WN | |
| |
| |
Electronic Mail Servers | |
| |
| |
Mail Server Options | |
| |
| |
sendmail | |
| |
| |
Postfix | |
| |
| |
qmail | |
| |
| |
Exim | |
| |
| |
POP and IMAP | |
| |
| |
FTP Servers | |
| |
| |
News Servers | |
| |
| |
INN | |
| |
| |
Remote Access Services | |
| |
| |
File Transfer Protocol | |
| |
| |
Remote Login Access | |
| |
| |
Configuring inetd | |
| |
| |
Common Unix Commands | |
| |
| |
Glossary | |
| |
| |
Sample Configuration Scripts | |
| |
| |
Internet Resources | |
| |
| |
Index | |