Specifications
4 Contents
23 Chapter 3: Scripting the Command Line
23 What is a Shell Script?
24 Monitoring and Restarting Critical Services with launchd
25 Scheduling a Shell Script to Run at Specic Times
26 Scheduling tasks with launchd
27 Chapter 4: Connecting to Remote Computers
27 SSH
27 How SSH Works
28 Generating Key Pairs for Key-Based SSH Connections
30 Updating SSH Key Fingerprints
31 An SSH Man-in-the-Middle Attack
32 Controlling Access to SSH Service
32 Connecting to a Remote Computer Using SSH
33 Apple Remote Desktop
33 X11
34 Chapter 5: Common Command-Line Tasks
34 Editing Conguration Files
34 Text Editors
36 Saving Text Files for UNIX Execution
36 Editing Property Lists
39 Moving and Copying Files
40 Compressing and Uncompressing File Archives
40 Viewing File Contents
41 Searching for Text in a File
41 Backing Up and Restoring
42 Chapter 6: Accessing Apple Hardware from the Command Line
42 Restarting a Computer
42 Automatic Restart
43 Changing a Remote Computer’s Startup Disk
43 Shutting Down a Computer
43 Shutting Down While Leaving the Computer On and Powered
44 Manipulating Open Firmware NVRAM Variables
44 Remotely Controlling the Xserve Front Panel
45 Appendix Command-Line Tools Specic to Mac OS X
45 Section 1 Man Pages
50 Section 4 Man Pages
50 Section 5 Man Pages
51 Section 7 Man Pages
51 Section 8 Man Pages
56 Index