Preface |
|
xxix | |
|
|
1 | (14) |
|
The Heritage of Mac OS X: UNIX |
|
|
2 | (1) |
|
The Open Source Connection |
|
|
3 | (2) |
|
|
3 | (1) |
|
|
4 | (1) |
|
|
5 | (1) |
|
|
5 | (1) |
|
|
5 | (5) |
|
Mac OS X Has a Kernel Programming Interface |
|
|
5 | (1) |
|
Mac OS X Can Support Many Users |
|
|
6 | (1) |
|
Mac OS X Can Run Many Tasks |
|
|
7 | (1) |
|
Mac OS X Provides a Secure Hierarchical Filesystem |
|
|
7 | (1) |
|
The Shell: Command Interpreter and Programming Language |
|
|
8 | (1) |
|
A Large Collection of Useful Utilities |
|
|
9 | (1) |
|
Interprocess Communication |
|
|
10 | (1) |
|
System Maintenance and Administration |
|
|
10 | (1) |
|
Additional Features of Mac OS X |
|
|
10 | (3) |
|
GUIs: Graphical User Interfaces |
|
|
10 | (1) |
|
(Inter)Networking Utilities |
|
|
11 | (1) |
|
|
11 | (1) |
|
The C and Objective-C Programming Languages |
|
|
12 | (1) |
|
|
13 | (1) |
|
|
13 | (1) |
|
|
14 | (1) |
|
PART I THE MAC OS X OPERATING SYSTEM |
|
|
15 | (128) |
|
|
17 | (22) |
|
Conventions Used in This Book |
|
|
18 | (2) |
|
|
20 | (3) |
|
|
20 | (1) |
|
|
21 | (1) |
|
Logging In Remotely: Terminal Emulation and ssh |
|
|
22 | (1) |
|
Curbing Your Power: Superuser/root/Administrator Access |
|
|
23 | (1) |
|
|
23 | (3) |
|
Running the Mac OS X Command Line Interface |
|
|
23 | (1) |
|
|
24 | (2) |
|
Repeating/Editing Command Lines |
|
|
26 | (1) |
|
|
26 | (1) |
|
Getting the Facts: Where to Find Documentation |
|
|
27 | (7) |
|
|
27 | (1) |
|
|
28 | (1) |
|
man: Displaying the System Manual |
|
|
28 | (2) |
|
info: Displaying Information About Utilities |
|
|
30 | (3) |
|
Using the Internet to Get Help |
|
|
33 | (1) |
|
|
34 | (3) |
|
What to Do if You Cannot Log In |
|
|
34 | (1) |
|
Logging In on the Text Console |
|
|
35 | (1) |
|
|
35 | (1) |
|
|
36 | (1) |
|
|
37 | (1) |
|
|
38 | (1) |
|
|
38 | (1) |
|
|
39 | (32) |
|
|
40 | (1) |
|
|
41 | (2) |
|
Is: Lists the Names of Files |
|
|
41 | (1) |
|
cat: Displays a Text File |
|
|
42 | (1) |
|
|
42 | (1) |
|
|
42 | (1) |
|
less: Displays a Text File One Screen at a Time |
|
|
42 | (1) |
|
hostname: Displays Your System Name |
|
|
43 | (1) |
|
|
43 | (8) |
|
|
43 | (1) |
|
ditto: Copies Files and Directories |
|
|
44 | (1) |
|
mv: Changes the Name of a File |
|
|
45 | (1) |
|
|
45 | (1) |
|
grep: Searches for a String |
|
|
46 | (1) |
|
head: Displays the Beginning of a File |
|
|
47 | (1) |
|
tail: Displays the End of a File |
|
|
48 | (1) |
|
sort: Displays a File in Order |
|
|
49 | (1) |
|
uniq: Removes Duplicate Lines from a File |
|
|
49 | (1) |
|
|
49 | (1) |
|
file: Tests the Contents of a File |
|
|
50 | (1) |
|
| (Pipe): Communicates Between Processes |
|
|
51 | (1) |
|
|
52 | (2) |
|
|
52 | (1) |
|
date: Displays the Date and Time |
|
|
52 | (1) |
|
script: Records a Shell Session |
|
|
52 | (2) |
|
Compressing and Archiving Files |
|
|
54 | (4) |
|
|
54 | (1) |
|
bunzip2 and bzcat: Decompress a File |
|
|
55 | (1) |
|
|
55 | (1) |
|
tar: Packs and Unpacks Archives |
|
|
56 | (2) |
|
|
58 | (2) |
|
which and type: Locate a Utility |
|
|
58 | (1) |
|
apropos: Searches for a Keyword |
|
|
59 | (1) |
|
Obtaining User and System Information |
|
|
60 | (3) |
|
who: Lists Users on the System |
|
|
60 | (1) |
|
finger: Lists Users on the System |
|
|
61 | (1) |
|
w: Lists Users on the System |
|
|
62 | (1) |
|
Communicating with Other Users |
|
|
63 | (1) |
|
|
63 | (1) |
|
mesg: Denies or Accepts Messages |
|
|
64 | (1) |
|
|
64 | (1) |
|
|
65 | (2) |
|
|
67 | (1) |
|
|
68 | (3) |
|
|
71 | (42) |
|
The Hierarchical Filesystem |
|
|
72 | (1) |
|
Directory Files and Ordinary Files |
|
|
73 | (5) |
|
|
74 | (3) |
|
|
77 | (1) |
|
|
77 | (1) |
|
|
78 | (2) |
|
|
78 | (1) |
|
|
79 | (1) |
|
|
80 | (6) |
|
mkdir: Creates a Directory |
|
|
80 | (2) |
|
cd: Changes to Another Working Directory |
|
|
82 | (1) |
|
The . and .. Directory Entries |
|
|
82 | (1) |
|
rmdir: Deletes a Directory |
|
|
83 | (1) |
|
|
84 | (1) |
|
mv, cp: Moves or Copies a File |
|
|
84 | (1) |
|
|
85 | (1) |
|
|
86 | (1) |
|
|
86 | (1) |
|
|
86 | (1) |
|
|
87 | (6) |
|
ls -l: Displays Permissions |
|
|
87 | (1) |
|
chmod: Changes Access Permissions |
|
|
88 | (1) |
|
|
89 | (1) |
|
Setuid and Setgid Permissions |
|
|
90 | (1) |
|
Directory Access Permissions |
|
|
90 | (2) |
|
|
92 | (1) |
|
|
93 | (6) |
|
|
93 | (2) |
|
|
95 | (2) |
|
|
97 | (2) |
|
|
99 | (3) |
|
Ordinary Files, Directories, Links, and Inodes |
|
|
99 | (1) |
|
|
100 | (2) |
|
|
102 | (6) |
|
|
103 | (2) |
|
|
105 | (2) |
|
|
107 | (1) |
|
|
108 | (1) |
|
|
109 | (2) |
|
|
111 | (2) |
|
|
113 | (30) |
|
|
114 | (6) |
|
|
114 | (3) |
|
Processing the Command Line |
|
|
117 | (2) |
|
Executing the Command Line |
|
|
119 | (1) |
|
Standard Input and Standard Output |
|
|
120 | (11) |
|
|
120 | (1) |
|
The Keyboard and Screen as Standard Input and Standard Output |
|
|
121 | (1) |
|
|
122 | (6) |
|
|
128 | (3) |
|
Running a Program in the Background |
|
|
131 | (2) |
|
Filename Generation/Pathname Expansion |
|
|
133 | (5) |
|
|
134 | (1) |
|
|
134 | (2) |
|
The [ ] Special Characters |
|
|
136 | (2) |
|
|
138 | (1) |
|
|
138 | (2) |
|
Utilities and Builtins Introduced in This Chapter |
|
|
139 | (1) |
|
|
140 | (1) |
|
|
141 | (2) |
|
|
143 | (112) |
|
|
145 | (54) |
|
|
146 | (1) |
|
Tutorial: Creating and Editing a File with vim |
|
|
147 | (6) |
|
|
147 | (2) |
|
|
149 | (1) |
|
|
150 | (1) |
|
|
151 | (2) |
|
Ending the Editing Session |
|
|
153 | (1) |
|
|
153 | (1) |
|
Introduction to vim Features |
|
|
154 | (6) |
|
|
154 | (1) |
|
|
155 | (1) |
|
|
156 | (1) |
|
Correcting Text as You Insert It |
|
|
156 | (1) |
|
|
156 | (1) |
|
Line Length and File Size |
|
|
157 | (1) |
|
|
157 | (1) |
|
|
157 | (1) |
|
Abnormal Termination of an Editing Session |
|
|
158 | (1) |
|
Recovering Text After a Crash |
|
|
159 | (1) |
|
Command Mode: Moving the Cursor |
|
|
160 | (3) |
|
Moving the Cursor by Characters |
|
|
160 | (1) |
|
Moving the Cursor to a Specific Character |
|
|
161 | (1) |
|
Moving the Cursor by Words |
|
|
161 | (1) |
|
Moving the Cursor by Lines |
|
|
162 | (1) |
|
Moving the Cursor by Sentences and Paragraphs |
|
|
162 | (1) |
|
Moving the Cursor Within the Screen |
|
|
162 | (1) |
|
Viewing Different Parts of the Work Buffer |
|
|
162 | (1) |
|
|
163 | (2) |
|
|
163 | (1) |
|
|
164 | (1) |
|
|
164 | (1) |
|
|
164 | (1) |
|
Quoting Special Characters in Input Mode |
|
|
164 | (1) |
|
Command Mode: Deleting and Changing Text |
|
|
165 | (3) |
|
|
165 | (1) |
|
|
165 | (1) |
|
|
165 | (2) |
|
|
167 | (1) |
|
|
168 | (1) |
|
|
168 | (1) |
|
Searching and Substituting |
|
|
168 | (7) |
|
Searching for a Character |
|
|
168 | (1) |
|
|
169 | (3) |
|
Substituting One String for Another |
|
|
172 | (3) |
|
|
175 | (1) |
|
|
175 | (1) |
|
|
175 | (1) |
|
|
175 | (1) |
|
Yank, Put, and Delete Commands |
|
|
175 | (3) |
|
The General-Purpose Buffer |
|
|
176 | (1) |
|
|
177 | (1) |
|
|
178 | (1) |
|
Reading and Writing Files |
|
|
178 | (1) |
|
|
178 | (1) |
|
|
178 | (1) |
|
Identifying the Current File |
|
|
179 | (1) |
|
|
179 | (5) |
|
Setting Parameters from Within vim |
|
|
179 | (1) |
|
Setting Parameters in a Startup File |
|
|
180 | (1) |
|
|
180 | (1) |
|
|
181 | (3) |
|
Advanced Editing Techniques |
|
|
184 | (4) |
|
|
184 | (1) |
|
|
185 | (1) |
|
|
186 | (1) |
|
Executing Shell Commands from Within vim |
|
|
186 | (2) |
|
|
188 | (3) |
|
|
188 | (1) |
|
|
188 | (1) |
|
|
188 | (1) |
|
|
189 | (1) |
|
|
189 | (1) |
|
|
190 | (1) |
|
|
190 | (1) |
|
|
191 | (1) |
|
|
191 | (5) |
|
|
196 | (1) |
|
|
197 | (2) |
|
|
199 | (56) |
|
|
200 | (1) |
|
|
200 | (1) |
|
|
201 | (1) |
|
Tutorial: Getting Started with emacs |
|
|
201 | (6) |
|
|
202 | (1) |
|
|
203 | (1) |
|
|
203 | (1) |
|
|
203 | (1) |
|
|
203 | (3) |
|
Editing at the Cursor Position |
|
|
206 | (1) |
|
Saving and Retrieving the Buffer |
|
|
207 | (1) |
|
|
207 | (6) |
|
|
208 | (1) |
|
Key Sequences and Commands |
|
|
209 | (1) |
|
META-x: Running a Command Without a Key Binding |
|
|
209 | (1) |
|
|
209 | (1) |
|
|
210 | (1) |
|
Scrolling Through a Buffer |
|
|
210 | (1) |
|
|
210 | (1) |
|
|
211 | (2) |
|
|
213 | (2) |
|
|
215 | (13) |
|
|
215 | (1) |
|
|
216 | (2) |
|
Cut and Paste: Yanking Killed Text |
|
|
218 | (1) |
|
Inserting Special Characters |
|
|
219 | (1) |
|
|
220 | (2) |
|
|
222 | (2) |
|
|
224 | (1) |
|
|
225 | (2) |
|
Foreground Shell Commands |
|
|
227 | (1) |
|
Background Shell Commands |
|
|
227 | (1) |
|
Language-Sensitive Editing |
|
|
228 | (10) |
|
|
229 | (1) |
|
|
229 | (3) |
|
|
232 | (3) |
|
|
235 | (1) |
|
|
235 | (1) |
|
|
236 | (2) |
|
|
238 | (4) |
|
|
239 | (1) |
|
|
240 | (1) |
|
|
241 | (1) |
|
|
242 | (1) |
|
|
243 | (1) |
|
|
243 | (8) |
|
|
251 | (1) |
|
|
252 | (3) |
|
|
255 | (126) |
|
|
257 | (80) |
|
|
258 | (1) |
|
|
259 | (19) |
|
|
259 | (3) |
|
Commands That Are Symbols |
|
|
262 | (1) |
|
Redirecting Standard Error |
|
|
262 | (3) |
|
Writing a Simple Shell Script |
|
|
265 | (3) |
|
Separating and Grouping Commands |
|
|
268 | (4) |
|
|
272 | (3) |
|
Manipulating the Directory Stack |
|
|
275 | (3) |
|
|
278 | (15) |
|
|
279 | (3) |
|
|
282 | (2) |
|
|
284 | (8) |
|
|
292 | (1) |
|
|
293 | (2) |
|
|
293 | (1) |
|
|
293 | (1) |
|
|
294 | (1) |
|
|
295 | (16) |
|
Variables That Control History |
|
|
295 | (1) |
|
Reexecuting and Editing Commands |
|
|
296 | (8) |
|
|
304 | (7) |
|
|
311 | (3) |
|
Single Versus Double Quotation Marks in Aliases |
|
|
311 | (1) |
|
|
312 | (2) |
|
|
314 | (2) |
|
Controlling bash Features and Options |
|
|
316 | (5) |
|
|
317 | (1) |
|
|
317 | (4) |
|
Processing the Command Line |
|
|
321 | (10) |
|
|
321 | (1) |
|
|
321 | (1) |
|
Parsing and Scanning the Command Line |
|
|
322 | (1) |
|
|
322 | (9) |
|
|
331 | (1) |
|
|
332 | (3) |
|
|
335 | (2) |
|
|
337 | (44) |
|
|
338 | (1) |
|
Entering and Leaving the TC Shell |
|
|
338 | (3) |
|
|
340 | (1) |
|
Features Common to the Bourne Again and TC Shells |
|
|
341 | (5) |
|
Command Line Expansion (Substitution) |
|
|
341 | (4) |
|
|
345 | (1) |
|
|
346 | (1) |
|
Manipulating the Directory Stack |
|
|
346 | (1) |
|
|
346 | (1) |
|
Redirecting Standard Error |
|
|
346 | (2) |
|
Working with the Command Line |
|
|
348 | (4) |
|
|
348 | (2) |
|
|
350 | (1) |
|
|
351 | (1) |
|
|
352 | (12) |
|
|
353 | (1) |
|
|
353 | (1) |
|
Arrays of String Variables |
|
|
354 | (1) |
|
|
355 | (2) |
|
|
357 | (1) |
|
|
357 | (1) |
|
|
358 | (6) |
|
|
364 | (9) |
|
|
364 | (3) |
|
|
367 | (1) |
|
|
367 | (1) |
|
|
368 | (1) |
|
|
369 | (2) |
|
|
371 | (1) |
|
|
372 | (1) |
|
|
372 | (1) |
|
|
373 | (4) |
|
|
377 | (1) |
|
|
378 | (2) |
|
|
380 | (1) |
|
PART IV NETWORKING AND MAINTENANCE |
|
|
381 | (94) |
|
Networking and the Internet |
|
|
383 | (42) |
|
Types of Networks and How They Work |
|
|
385 | (15) |
|
|
386 | (1) |
|
|
386 | (1) |
|
|
386 | (1) |
|
|
387 | (1) |
|
|
388 | (1) |
|
Internetworking Through Gateways and Routers |
|
|
388 | (3) |
|
|
391 | (2) |
|
|
393 | (5) |
|
CIDR: Classless Inter-Domain Routing |
|
|
398 | (1) |
|
|
399 | (1) |
|
Communicate over a Network |
|
|
400 | (3) |
|
finger: Displays Information About Remote Users |
|
|
401 | (1) |
|
Sending Mail to a Remote User |
|
|
402 | (1) |
|
|
402 | (1) |
|
|
403 | (7) |
|
|
403 | (1) |
|
|
403 | (1) |
|
telnet: Logs In on a Remote System |
|
|
404 | (1) |
|
ftp: Transfers Files over a Network |
|
|
405 | (1) |
|
ping: Tests a Network Connection |
|
|
405 | (1) |
|
traceroute: Traces a Route over the Internet |
|
|
406 | (2) |
|
host and dig: Query Internet Nameservers |
|
|
408 | (1) |
|
whois: Looks Up Information About an Internet Site |
|
|
408 | (2) |
|
|
410 | (8) |
|
|
410 | (1) |
|
|
411 | (3) |
|
|
414 | (1) |
|
|
414 | (1) |
|
|
414 | (2) |
|
|
416 | (1) |
|
|
417 | (1) |
|
|
418 | (2) |
|
|
420 | (2) |
|
URL: Uniform Resource Locator |
|
|
421 | (1) |
|
|
422 | (1) |
|
|
422 | (1) |
|
|
422 | (1) |
|
|
423 | (1) |
|
|
424 | (1) |
|
|
425 | (50) |
|
Philosophy of System Administration |
|
|
426 | (1) |
|
System Administrator and Superuser |
|
|
427 | (8) |
|
Enabling the root Account |
|
|
430 | (1) |
|
|
430 | (4) |
|
|
434 | (1) |
|
|
435 | (1) |
|
|
435 | (6) |
|
|
436 | (1) |
|
|
436 | (1) |
|
|
437 | (1) |
|
|
437 | (1) |
|
|
438 | (1) |
|
|
438 | (1) |
|
|
439 | (1) |
|
Running a Program and Logging Out |
|
|
439 | (1) |
|
|
439 | (2) |
|
|
441 | (1) |
|
|
441 | (3) |
|
Important Standard Directories and Files |
|
|
444 | (4) |
|
|
448 | (3) |
|
|
451 | (15) |
|
|
451 | (4) |
|
lookupd: Which Service to Look at First |
|
|
455 | (1) |
|
|
456 | (4) |
|
Securing a Server Under Mac OS X 10.4 and Later |
|
|
460 | (4) |
|
|
464 | (2) |
|
|
466 | (4) |
|
Configuration Files, Module Types, and Control Flags |
|
|
467 | (2) |
|
|
469 | (1) |
|
Modifying the PAM Configuration |
|
|
470 | (1) |
|
fink: Downloads and Installs Software |
|
|
470 | (2) |
|
|
472 | (1) |
|
|
472 | (1) |
|
|
473 | (2) |
|
|
475 | (182) |
|
|
477 | (46) |
|
Carbon, Cocoa, and UNIX APIs |
|
|
478 | (1) |
|
|
478 | (8) |
|
|
479 | (1) |
|
|
480 | (3) |
|
Compiling and Linking a C Program |
|
|
483 | (3) |
|
|
486 | (3) |
|
|
487 | (1) |
|
|
488 | (1) |
|
Creating Shared Libraries |
|
|
488 | (1) |
|
make: Keeps a Set of Programs Current |
|
|
489 | (7) |
|
|
491 | (3) |
|
|
494 | (2) |
|
|
496 | (10) |
|
gcc: Compiler Warning Options |
|
|
499 | (1) |
|
|
500 | (6) |
|
|
506 | (1) |
|
|
506 | (3) |
|
ktrace: Traces System Calls |
|
|
507 | (1) |
|
|
507 | (1) |
|
|
508 | (1) |
|
|
509 | (10) |
|
CVS: Concurrent Versions System |
|
|
510 | (9) |
|
|
519 | (1) |
|
|
520 | (1) |
|
|
520 | (3) |
|
Programming the Bourne Again Shell |
|
|
523 | (86) |
|
|
524 | (31) |
|
|
524 | (4) |
|
|
528 | (3) |
|
|
531 | (6) |
|
|
537 | (1) |
|
|
538 | (2) |
|
|
540 | (1) |
|
|
541 | (2) |
|
|
543 | (2) |
|
|
545 | (6) |
|
|
551 | (2) |
|
|
553 | (2) |
|
|
555 | (3) |
|
|
558 | (12) |
|
|
558 | (2) |
|
|
560 | (2) |
|
|
562 | (2) |
|
|
564 | (5) |
|
Expanding Null and Unset Variables |
|
|
569 | (1) |
|
|
570 | (14) |
|
type: Displays Information About a Command |
|
|
570 | (1) |
|
|
571 | (3) |
|
|
574 | (3) |
|
|
577 | (3) |
|
|
580 | (1) |
|
|
581 | (2) |
|
A Partial List of Builtins |
|
|
583 | (1) |
|
|
584 | (9) |
|
|
585 | (1) |
|
Logical Evaluation (Conditional Expressions) |
|
|
586 | (1) |
|
|
587 | (1) |
|
|
588 | (5) |
|
|
593 | (10) |
|
|
593 | (3) |
|
|
596 | (7) |
|
|
603 | (1) |
|
|
604 | (2) |
|
|
606 | (3) |
|
The awk Pattern Processing Language |
|
|
609 | (32) |
|
|
610 | (1) |
|
|
610 | (1) |
|
|
611 | (1) |
|
|
611 | (1) |
|
|
611 | (7) |
|
|
612 | (1) |
|
|
612 | (1) |
|
|
613 | (1) |
|
|
613 | (1) |
|
|
614 | (1) |
|
|
614 | (1) |
|
|
615 | (1) |
|
|
615 | (1) |
|
|
616 | (2) |
|
|
618 | (16) |
|
|
634 | (3) |
|
getline: Controlling Input |
|
|
634 | (3) |
|
system: Running External Commands |
|
|
637 | (1) |
|
|
637 | (1) |
|
|
638 | (1) |
|
|
639 | (1) |
|
|
639 | (2) |
|
|
641 | (16) |
|
|
642 | (1) |
|
|
642 | (1) |
|
|
642 | (1) |
|
|
642 | (4) |
|
|
643 | (1) |
|
|
643 | (2) |
|
|
645 | (1) |
|
The Pattern Space and the Hold Space |
|
|
645 | (1) |
|
|
646 | (10) |
|
|
656 | (1) |
|
|
656 | (1) |
|
PART VI COMMAND REFERENCE |
|
|
657 | (238) |
|
Standard Multiplicative Suffixes |
|
|
662 | (1) |
|
|
663 | (1) |
|
|
663 | (232) |
|
sample Very brief description of what the utility does |
|
|
664 | (1) |
|
at Executes commands at a specified time |
|
|
665 | (3) |
|
bzip2 Compresses or decompresses files |
|
|
668 | (2) |
|
|
670 | (1) |
|
cat Joins and displays files |
|
|
671 | (2) |
|
cd Changes to another working directory |
|
|
673 | (2) |
|
chgrp Changes the group associated with a file |
|
|
675 | (1) |
|
chmod Changes the access mode (permissions) of a file |
|
|
676 | (6) |
|
chown Changes the owner of a file and/or the group the file is associated with |
|
|
682 | (2) |
|
|
684 | (2) |
|
comm Compares sorted files |
|
|
686 | (2) |
|
configure Configures source code automatically |
|
|
688 | (2) |
|
|
690 | (3) |
|
cpio Creates an archive, restores files from an archive, or copies a directory |
|
|
693 | (4) |
|
crontab Maintains crontab files |
|
|
697 | (2) |
|
cut Selects characters or fields from input lines |
|
|
699 | (2) |
|
date Displays or sets the system time and date |
|
|
701 | (2) |
|
dd Converts and copies a file |
|
|
703 | (2) |
|
df Displays disk space usage |
|
|
705 | (2) |
|
diff Displays the differences between two files |
|
|
707 | (5) |
|
diskutil Checks, modifies, and repairs local volumes |
|
|
712 | (3) |
|
ditto Copies files and creates and unpacks archives |
|
|
715 | (2) |
|
dmesg Displays kernel messages |
|
|
717 | (1) |
|
du Displays information on disk usage by file |
|
|
718 | (2) |
|
|
720 | (2) |
|
expr Evaluates an expression |
|
|
722 | (4) |
|
file Displays the classification of a file |
|
|
726 | (2) |
|
find Finds files based on criteria |
|
|
728 | (6) |
|
finger Displays information about users |
|
|
734 | (2) |
|
fmt Formats text very simply |
|
|
736 | (2) |
|
ftp Transfers files over a network |
|
|
738 | (7) |
|
gcc Compiles C, Objective-C, and C++ programs |
|
|
745 | (4) |
|
GetFileInfo Displays file attributes |
|
|
749 | (2) |
|
grep Searches for a pattern in files |
|
|
751 | (5) |
|
gzip Compresses or decompresses files |
|
|
756 | (3) |
|
head Displays the beginning of a file |
|
|
759 | (2) |
|
kill Terminates a process by PID number |
|
|
761 | (2) |
|
killall Terminates a process by name |
|
|
763 | (2) |
|
launchctl Controls the launchd daemon |
|
|
765 | (3) |
|
less Displays text files, one screen at a time |
|
|
768 | (4) |
|
ln Makes a link to a file |
|
|
772 | (2) |
|
lpr Sends files to printers |
|
|
774 | (3) |
|
ls Displays information about one or more files |
|
|
777 | (6) |
|
make Keeps a set of programs current |
|
|
783 | (5) |
|
man Displays documentation for commands |
|
|
788 | (3) |
|
mkdir Creates a directory |
|
|
791 | (1) |
|
mv Renames or moves a file |
|
|
792 | (2) |
|
nice Changes the priority of a command |
|
|
794 | (2) |
|
nidump Display contents of a NetInfo database |
|
|
796 | (2) |
|
nohup Runs a command that keeps running after you log out |
|
|
798 | (1) |
|
od Dumps the contents of a file |
|
|
799 | (4) |
|
open Opens files, directories, and URLs |
|
|
803 | (2) |
|
otool Displays object, library, and executable files |
|
|
805 | (2) |
|
paste Joins corresponding lines from files |
|
|
807 | (2) |
|
pax Creates an archive, restores files from an archive, or copies a directory |
|
|
809 | (6) |
|
plutil Manipulates property list files |
|
|
815 | (2) |
|
pr Paginates files for printing |
|
|
817 | (2) |
|
ps Displays process status |
|
|
819 | (4) |
|
rcp Copies one or more files to or from a remote system |
|
|
823 | (2) |
|
renice Changes the priority of a process |
|
|
825 | (1) |
|
rlogin Logs in on a remote system |
|
|
826 | (1) |
|
rm Removes a file (deletes a link) |
|
|
827 | (2) |
|
rmdir Removes a directory |
|
|
829 | (1) |
|
rsh Executes commands on a remote system |
|
|
830 | (2) |
|
scp Securely copies one or more files to or from a remote system |
|
|
832 | (2) |
|
SetFile Sets file attributes |
|
|
834 | (2) |
|
sleep Creates a process that sleeps for a specified interval |
|
|
836 | (1) |
|
sort Sorts and/or merges files |
|
|
837 | (9) |
|
split Divides a file into sections |
|
|
846 | (1) |
|
ssh Securely executes commands on a remote system |
|
|
847 | (4) |
|
stat Displays information about files |
|
|
851 | (2) |
|
strings Displays strings of printable characters |
|
|
853 | (1) |
|
stty Displays or sets terminal parameters |
|
|
854 | (4) |
|
sysctl Displays and alters kernel variables |
|
|
858 | (1) |
|
tail Displays the last part of a file |
|
|
859 | (3) |
|
tar Stores or retrieves files to/from an archive file |
|
|
862 | (5) |
|
tee Copies standard input to standard output and one or more files |
|
|
867 | (1) |
|
telnet Connects to a remote system over a network |
|
|
868 | (3) |
|
test Evaluates an expression |
|
|
871 | (3) |
|
top Dynamically displays process status |
|
|
874 | (3) |
|
touch Changes a file's access and/or modification time |
|
|
877 | (2) |
|
tr Replaces specified characters |
|
|
879 | (3) |
|
tty Displays the terminal pathname |
|
|
882 | (1) |
|
umask Establishes the file-creation permissions mask |
|
|
883 | (2) |
|
uniq Displays unique lines |
|
|
885 | (2) |
|
w Displays information about system users |
|
|
887 | (1) |
|
wc Displays the number of lines, words, and bytes |
|
|
888 | (1) |
|
which Shows where in Path a command is located |
|
|
889 | (1) |
|
who Displays information about logged-in users |
|
|
890 | (2) |
|
xargs Converts standard input into command lines |
|
|
892 | (3) |
|
|
895 | (24) |
|
Appendix A: Regular Expressions |
|
|
897 | (10) |
|
|
898 | (1) |
|
|
898 | (1) |
|
|
898 | (1) |
|
|
898 | (1) |
|
|
899 | (1) |
|
|
899 | (1) |
|
|
899 | (1) |
|
|
900 | (1) |
|
Quoting Special Characters |
|
|
900 | (1) |
|
|
901 | (1) |
|
|
901 | (1) |
|
Empty Regular Expressions |
|
|
902 | (1) |
|
|
902 | (1) |
|
|
902 | (1) |
|
|
903 | (1) |
|
|
903 | (1) |
|
Extended Regular Expressions |
|
|
903 | (2) |
|
|
905 | (2) |
|
|
907 | (8) |
|
|
908 | (1) |
|
Finding Related Information |
|
|
909 | (1) |
|
|
909 | (1) |
|
|
910 | (1) |
|
Mac OS X Newsgroups and Forums |
|
|
911 | (1) |
|
|
911 | (1) |
|
|
911 | (1) |
|
|
912 | (1) |
|
|
913 | (2) |
|
Appendix C: Mac OS X for Unix Users |
|
|
915 | (4) |
Glossary |
|
919 | (44) |
Index |
|
963 | |