CHF23.00
Download est disponible immédiatement
Explore a ton of powerful Mac OS X UNIX commands This handy, compact guide teaches you to use Mac OS X UNIXsystems as the experts do: from the command line. Try out more than1,000 commands to find and get software, monitor system health andsecurity, and access network resources. Apply the skills you learnfrom this book to troubleshoot networks, lock down security, anduncover almost anything you care to know about your Mac OS Xsystem. Expand your Mac OS X UNIX expertise in these and otherareas: Using the shell Finding online software Working with files Playing with music and images Administering file systems Backing up data Checking and managing running processes Accessing network resources Handling remote system administration Locking down security
Auteur
Christopher Negus served for eight years on development teams for the UNIX operating system at the AT&T labs, where UNIX was created and developed. He also worked with Novell on UNIX and UnixWare development. Chris is the author of the bestselling Fedora and Red Hat Linux Bible series, Linux Toys II, Linux Troubleshooting Bible, and Linux Bible 2008 Edition. He now works as a trainer for Red Hat Enterprise Linux, and is RHEL certified.
Francois Caen hosts and manages business application infrastructures through his company Turbosphere LLC. As an open-source advocate, he has lectured on OSS network management and Internet services, and served as president of the Tacoma Linux User Group. He is a Red Hat Certified Engineer (RHCE).
Thomas Myer is a consultant, speaker, and writer. He has become closely involved with various aspects of Mac OS X and iPhone programming. He has switched his entire web development business to Mac-based systems.
Texte du rabat
Explore a ton of powerful Mac OS X UNIX commands
This handy, compact guide teaches you to use Mac OS X UNIX systems as the experts do: from the command line. Try out more than 1,000 commands to find and get software, monitor system health and security, and access network resources. Apply the skills you learn from this book to troubleshoot networks, lock down security, and uncover almost anything you care to know about your Mac OS X system.
Expand your Mac OS X UNIX expertise in these and other areas:
Using the shell
Finding online software
Working with files
Playing with music and images
Administering file systems
Backing up data
Checking and managing running processes
Accessing network resources
Handling remote system administration
Locking down security
Contenu
Introduction xix
Chapter 1: Starting with UNIX on Mac OS X 1
About FreeBSD, NetBSD, and OpenBSD 2
Finding Mac OS X Resources 4
Focusing on Mac OS X Commands 4
Finding Commands 5
Command Reference Information in UNIX 6
Summary 9
Chapter 2: New to Mac OS X? 11
What Is Mac OS X UNIX? 11
Finding Terminal and Utilities 12
Directory Structure 16
Your Home Directory 18
Spotlight 19
Getting and Using Fink 21
Mounting and Unmounting Drives 23
Learning to Love Launchd 25
Summary 25
Chapter 3: Using the Shell 27
Terminal Windows and Shell Access 27
Using the Shell 28
Using bash History 29
Using Command-Line Completion 30
Redirecting stdin and stdout 31
Using Aliases 33
Tailing Files 34
Acquiring Super User Power 34
Using Environment Variables 35
Creating Simple Shell Scripts 36
Editing and Running a Script 36
Adding Content to Your Script 37
Summary 41
Chapter 4: Working with Files 43
Understanding File Types 43
Using Regular Files 43
Using Directories 44
Using Symbolic and Hard Links 45
Using Device Files 46
Using Named Pipes and Sockets 46
Setting File and Directory Permissions 47
Changing Permissions with chmod 48
Setting the umask 51
Changing Ownership 51
Traversing the File System 51
Copying Files 53
Searching for Files 55
Generating the locate Database 55
Finding Files with locate 56
Locating Files with find 57
Using Other Commands to Find Files 59
Finding Out More About Files 59
Listing Files 59
Verifying Files 60
Summary 62
Chapter 5: Manipulating Text 63
Matching Text with Regular Expressions 63
Editing Text Files 64
Using the Pico and Nano Editors 65
Listing, Sorting, and Changing Text 67
Listing Text Files 67
Paging Through Text 68
Paginating Text Files with pr 69
Searching for Text with grep 69
Replacing Text with sed 71
Translating or Removing Characters with tr 73
Checking Differences Between Two Files with diff 73
Using awk and cut to Process Columns 75
Summary 76
Chapter 6: Advanced Scripting 77
Shell Scripting on Mac OS X 77
Creating a Basic Shell Script 78
Adding Command-Line Arguments 80
Things to Watch Out For 83
Using the Script Command 83
AppleScripting 84
Working with the Open Command 87
Summary 90
Chapter 7: Administering File Systems 91
Understanding File System Basics 91
Setting Up the Disk Initially 92
Checking Your Disk Setup 92
Understanding File System Types 92
Creating and Managing File Systems 94
Partitioning Hard Disks 94
A Better Option: Nondestructive Partitioning 95
Mounting and Unmounting File Systems 96
Checking File Systems 97
Finding Out About File System Use 99
Summary 101
Chapter 8: Backups and Removable Media 103
Backing Up Data to Compressed Archives 103
Creating Backup Archives with tar 103
Using Compression Tools 105
Listing, Joining, and Adding Files to tar Archives 107
Backing Up over a Network 107
Backing Up tar Archives over ssh 108
Backing Up Files with rsync 109
Backing Up to CD or DVD 110
Working with Time Machine and Time Capsule 111
Summary 112
Chapter 9: Checking and Running Processes 115
Listing Active Processes 116
Viewing Active Processes with ps 116
Watching Active Processes with top 121
Finding and Controlling Processes 123
Using grep and pgrep to Find Processes 123
Using fuser to Find Processes 124
Summary 131
Chapter 10: Managing the System 133
Monitoring Resources 133
Monitoring Memory Use 134
Monitoring CPU Usage 135
Monitoring Storage Devices 136
Mastering Time 137
Changing Time Zone 137
Displaying and Setting Time and Date 137
Using Network Time Protocol to Set Date/Time 139
Checking Uptime 139
Starting and Stopping Your System 140
Straight to the Kernel 141
Summary 141
Chapter 11: Managing Network Connections 143
Configuring Network Interfaces 143
Managing Network Interface Cards 144
Managing Network Connections 147
Starting and Stopping Network Connections 148
Starting and Stopping Network Services 149
Checking Name Resolution 149
Troubleshooting Network Problems 151
Checking Connectivity to a Host 152
Checking Address Resolution Protocol (ARP) 153 Tracing Routes to Hosts 154<...