Introduction |
|
xi | |
Chapter 1: Getting Started with Unix |
|
|
Getting Unix or Access to a Unix System |
|
|
3 | (4) |
|
Connecting to the Unix System |
|
|
7 | (3) |
|
|
10 | (1) |
|
Changing Your Password with passwd |
|
|
11 | (2) |
|
Listing Directories and Files with is |
|
|
13 | (2) |
|
Changing Directories with cd |
|
|
15 | (2) |
|
Finding Yourself with pwd |
|
|
17 | (1) |
|
|
18 | (1) |
|
|
19 | (2) |
|
|
21 | (1) |
|
Viewing File Contents with more |
|
|
22 | (1) |
|
Displaying File Contents with cat |
|
|
23 | (2) |
|
|
25 | (1) |
|
|
26 | (2) |
|
|
28 | (1) |
Chapter 2: Using Directories and Files |
|
29 | (22) |
|
Creating Directories with mkdir |
|
|
30 | (2) |
|
Creating Files with touch |
|
|
32 | (2) |
|
Copying Directories and Files with cp |
|
|
34 | (2) |
|
Listing Directories and Files with ls (More Goodies) |
|
|
36 | (2) |
|
|
38 | (1) |
|
|
39 | (3) |
|
Removing Directories with rmdir |
|
|
42 | (2) |
|
Finding Forgotten Files with find |
|
|
44 | (2) |
|
Locating Lost Files with locate |
|
|
46 | (1) |
|
Linking with in (Hard Links) |
|
|
47 | (2) |
|
Linking with In -s (Soft Links) |
|
|
49 | (2) |
Chapter 3: Working with Your Shell |
|
51 | (22) |
|
Discovering What Shell You're Using |
|
|
52 | (1) |
|
Understanding Shells and Options |
|
|
53 | (2) |
|
Changing Your Shell with chsh |
|
|
55 | (2) |
|
Changing Your Shell Temporarily |
|
|
57 | (2) |
|
Using Completion in the bash Shell |
|
|
59 | (1) |
|
Viewing Session History in the bash Shell |
|
|
60 | (2) |
|
Using Completion in the zsh Shell |
|
|
62 | (1) |
|
Viewing Session History in the zsh Shell |
|
|
63 | (2) |
|
Using Completion in the ksh Shell |
|
|
65 | (1) |
|
Viewing Session History in the ksh Shell |
|
|
66 | (2) |
|
Viewing Session History in the csh Shell |
|
|
68 | (1) |
|
Changing Your Identity with su |
|
|
69 | (2) |
|
Fixing Terminal Settings with stty |
|
|
71 | (1) |
|
|
72 | (1) |
Chapter 4: Creating and Editing Files |
|
73 | (24) |
|
|
74 | (3) |
|
Starting pico and Dabbling with It |
|
|
77 | (1) |
|
|
78 | (1) |
|
Cutting and Pasting Text Blocks in pico |
|
|
79 | (1) |
|
Checking Spelling in pica |
|
|
80 | (1) |
|
|
81 | (1) |
|
|
82 | (1) |
|
Starting vi and Dabbling with It |
|
|
83 | (2) |
|
|
85 | (1) |
|
Adding and Deleting Text in vi |
|
|
86 | (1) |
|
|
87 | (1) |
|
Searching and Replacing in vi |
|
|
88 | (2) |
|
|
90 | (1) |
|
Starting emacs and Dabbling with It |
|
|
91 | (2) |
|
Using emacs Menus to Spell-Check |
|
|
93 | (1) |
|
|
94 | (1) |
|
|
95 | (2) |
Chapter 5: Controlling Ownership & Permissions |
|
97 | (16) |
|
Understanding File Ownership and Permissions |
|
|
98 | (1) |
|
Finding Out Who Owns What |
|
|
99 | (2) |
|
Finding Out Which Group You're In |
|
|
101 | (2) |
|
Changing the Group Association of Files and Directories with chgrp |
|
|
103 | (2) |
|
Changing Ownership of Files and Directories with chown |
|
|
105 | (1) |
|
Changing Permissions with chmod |
|
|
106 | (3) |
|
Translating Mnemonic Permissions to Numeric Permissions |
|
|
109 | (1) |
|
Changing Permission Defaults with umask |
|
|
110 | (3) |
Chapter 6: Manipulating Files |
|
113 | (26) |
|
Counting Files and Their Contents with we |
|
|
114 | (1) |
|
Viewing File Beginnings with head |
|
|
115 | (1) |
|
Viewing File Endings with tail |
|
|
116 | (1) |
|
|
117 | (1) |
|
Using Regular Expressions with grep |
|
|
118 | (2) |
|
Using Other Examples of Regular Expressions |
|
|
120 | (1) |
|
Making Global Changes with sed |
|
|
121 | (1) |
|
|
122 | (2) |
|
|
124 | (1) |
|
Finding Differences in Files with diff |
|
|
125 | (1) |
|
Finding Differences in Files with sdiff |
|
|
126 | (1) |
|
|
127 | (2) |
|
Eliminating Duplicates with uniq |
|
|
129 | (1) |
|
Redirecting to Multiple Locations with tee |
|
|
130 | (1) |
|
|
131 | (2) |
|
|
133 | (2) |
|
Preparing to Print with pr |
|
|
135 | (2) |
|
Splitting Files with split |
|
|
137 | (2) |
Chapter 7: Getting Information About the System |
|
139 | (14) |
|
Getting System Information with uname |
|
|
140 | (1) |
|
Viewing File Systems with df |
|
|
141 | (3) |
|
Determining Disk Usage with du |
|
|
144 | (1) |
|
Finding Out File Types with file |
|
|
145 | (1) |
|
Finding Out About Users with finger |
|
|
146 | (3) |
|
Learning Who Else Is Logged in with who |
|
|
149 | (1) |
|
Learning Who Else Is Logged in with w |
|
|
150 | (2) |
|
Getting Information About Your Userid with id |
|
|
152 | (1) |
Chapter 8: Configuring Your Unix Environment |
|
153 | (40) |
|
Understanding Your Unix Environment |
|
|
154 | (2) |
|
Discovering Your Current Environment |
|
|
156 | (2) |
|
Adding or Changing Variables |
|
|
158 | (3) |
|
Looking at Your zsh Configuration Files |
|
|
161 | (4) |
|
|
165 | (2) |
|
|
167 | (3) |
|
Looking at Your bash Configuration Files |
|
|
170 | (3) |
|
|
173 | (2) |
|
Changing Your bash Prompt |
|
|
175 | (2) |
|
Looking at Your ksh Configuration Files |
|
|
177 | (3) |
|
|
180 | (2) |
|
|
182 | (1) |
|
Looking at Your csh Configuration Files |
|
|
183 | (3) |
|
|
186 | (2) |
|
|
188 | (2) |
|
Setting Aliases with alias |
|
|
190 | (3) |
Chapter 9: Running Scripts and Programs |
|
193 | (18) |
|
|
194 | (1) |
|
Scheduling One-Time Jobs with at |
|
|
195 | (3) |
|
Scheduling Regularly Occurring Jobs with cron |
|
|
198 | (2) |
|
|
200 | (1) |
|
Checking Job Status with jobs |
|
|
201 | (1) |
|
Running Jobs in the Background with bg |
|
|
202 | (1) |
|
Running Jobs in the Foreground with fg |
|
|
203 | (1) |
|
Controlling Job Priority with nice |
|
|
204 | (1) |
|
|
205 | (2) |
|
Finding Out What Processes Are Running with ps |
|
|
207 | (2) |
|
Deleting Processes with kill |
|
|
209 | (2) |
Chapter 10: Writing Basic Scripts |
|
211 | (18) |
|
|
212 | (2) |
|
|
214 | (1) |
|
Making a Script Executable |
|
|
215 | (2) |
|
Getting a Head Start on Scripts with history |
|
|
217 | (1) |
|
|
218 | (2) |
|
|
220 | (2) |
|
Creating If-Then Statements |
|
|
222 | (3) |
|
Accepting Command-Line Arguments in Your Scripts |
|
|
225 | (1) |
|
Accepting Input While a Script Is Running |
|
|
226 | (2) |
|
|
228 | (1) |
Chapter 11: Sending and Reading Email |
|
229 | (26) |
|
Choosing an Email Program and Getting Started |
|
|
230 | (2) |
|
|
232 | (2) |
|
|
234 | (2) |
|
|
236 | (2) |
|
|
238 | (2) |
|
|
240 | (2) |
|
|
242 | (1) |
|
|
243 | (2) |
|
|
245 | (2) |
|
Automatically Forwarding Incoming Messages |
|
|
247 | (1) |
|
Announcing tin Absence with vacation |
|
|
248 | (2) |
|
|
250 | (2) |
|
Responding to Email with procmail |
|
|
252 | (3) |
Chapter 12: Accessing the Internet |
|
255 | (30) |
|
Getting Familiar with Unix Internet Lingo |
|
|
256 | (2) |
|
Logging in to Remote Systems with ssh |
|
|
258 | (1) |
|
Logging in to Remote Systems with telnet |
|
|
259 | (2) |
|
Communicating with Other Users Using write |
|
|
261 | (1) |
|
Communicating with Other Users Using talk |
|
|
262 | (1) |
|
Getting Files from the Internet with ftp |
|
|
263 | (4) |
|
Sharing Files on the Internet with ftp |
|
|
267 | (2) |
|
Surfing the Web with links |
|
|
269 | (1) |
|
Surfing the Web with lynx |
|
|
270 | (2) |
|
Downloading Web Sites with wget |
|
|
272 | (1) |
|
Checking Connections with ping |
|
|
273 | (1) |
|
Tracing Connections with traceroute |
|
|
274 | (2) |
|
Matching Domain Names with IP Numbers |
|
|
276 | (2) |
|
|
278 | (1) |
|
|
279 | (3) |
|
|
282 | (3) |
Chapter 13: Working with Encoded & Compressed Files |
|
285 | (16) |
|
Encoding Files with uuencode |
|
|
286 | (3) |
|
Decoding Files with uudecode |
|
|
289 | (1) |
|
|
290 | (2) |
|
Unarchiving Files with tar |
|
|
292 | (1) |
|
Compressing Files with compress |
|
|
293 | (1) |
|
Uncompressing Files with uncompress |
|
|
294 | (1) |
|
Zipping a File or Directory with gzip |
|
|
295 | (1) |
|
Unzipping a gzip File with gunzi p |
|
|
296 | (1) |
|
Zipping Files and Directories with zip |
|
|
297 | (1) |
|
Unzipping Zipped Files with unzip |
|
|
298 | (1) |
|
|
299 | (2) |
Chapter 14: Installing Your Own Software |
|
301 | (14) |
|
Understanding Unix Software Installation |
|
|
302 | (1) |
|
|
303 | (1) |
|
Downloading, Placing, and Uncompressing Software |
|
|
304 | (2) |
|
|
306 | (5) |
|
Compiling and Installing with make install |
|
|
311 | (4) |
Chapter 15: Using Handy Utilities |
|
315 | (12) |
|
|
316 | (3) |
|
|
319 | (1) |
|
Evaluating Expressions with expr |
|
|
320 | (1) |
|
|
321 | (1) |
|
Checking Spelling with ispell |
|
|
322 | (1) |
|
|
323 | (1) |
|
|
324 | (1) |
|
Keeping a Record of Your Session with script |
|
|
325 | (2) |
Chapter 16: Being Root |
|
327 | (16) |
|
Acting Like root with sudo |
|
|
328 | (2) |
|
|
330 | (2) |
|
Starting, Stopping, and Restarting Daemons |
|
|
332 | (2) |
|
Changing the System Configuration |
|
|
334 | (2) |
|
|
336 | (3) |
|
|
339 | (1) |
|
Checking Boot Messages with dmesg |
|
|
340 | (2) |
|
Setting the Date and Time |
|
|
342 | (1) |
Chapter 17: Sensational Unix Tricks |
|
343 | (20) |
|
Cleaning up HTML Documents with tidy |
|
|
344 | (3) |
|
Searching and Replacing Throughout Multiple Documents with sed |
|
|
347 | (3) |
|
Generating Reports with awk |
|
|
350 | (1) |
|
Using Input to Customize Your Environment |
|
|
351 | (2) |
|
Using ROT13 Encoding with sed |
|
|
353 | (2) |
|
Embedding ROT13 Encoding in a Shell Script |
|
|
355 | (3) |
|
Making Backups with rsync |
|
|
358 | (2) |
|
Using Advanced Redirection with stderr |
|
|
360 | (3) |
Appendix A: Unix Reference |
|
363 | (16) |
Appendix B: What's What and What's Where |
|
379 | (4) |
Appendix C: Commands and Flags |
|
383 | (34) |
Index |
|
417 | |