Mac OS X UNIX Toolbox: 1000+ commands for Mac OS X

Paperback
from $0.00

Author: Christopher Negus

ISBN-10: 0470478365

ISBN-13: 9780470478363

Category: Utilities (Computer Applications)

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...

Search in google:

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

Introduction xixChapter 1 Starting with Unix on Mac OS X 1About FreeBSD, NetBSD, and OpenBSD 2Finding Mac OS X Resources 4Focusing on Mac OS X Commands 4Finding Commands 5Command Reference Information in Unix 6Summary 9Chapter 2 New to Mac OS X? 11What Is Mac OS X Unix? 11Finding Terminal and Utilities 12Directory Structure 16Your Home Directory 18Spotlight 19Getting and Using Fink 21Mounting and Unmounting Drives 23Learning to Love Launchd 25Summary 25Chapter 3 Using the Shell 27Terminal Windows and Shell Access 27Using the Shell 28Using bash History 29Using Command-Line Completion 30Redirecting stdin and stdout 31Using Aliases 33Tailing Files 34Acquiring Super User Power 34Using Environment Variables 35Creating Simple Shell Scripts 36Editing and Running a Script 36Adding Content to Your Script 37Summary 41Chapter 4 Working with Files 43Understanding File Types 43Using Regular Files 43Using Directories 44Using Symbolic and Hard Links 45Using Device Files 46Using Named Pipes and Sockets 46Setting File and Directory Permissions 47Changing Permissions with chmod 48Setting the umask 51Changing Ownership 51Traversing the File System 51Copying Files 53Searching for Files 55Generating the locate Database 55Finding Files with locate 56Locating Files with find 57Using Other Commands to Find Files 59Finding Out More About Files 59Listing Files 59Verifying Files 60Summary 62Chapter 5 Manipulating Text 63Matching Text with Regular Expressions 63Editing Text Files 64Using the Pico and Nano Editors 65Listing, Sorting, and ChangingText 67Listing Text Files 67Paging Through Text 68Paginating Text Files with pr 69Searching for Text with grep 69Replacing Text with sed 71Translating or Removing Characters with tr 73Checking Differences Between Two Files with diff 73Using awk and cut to Process Columns 75Summary 76Chapter 6 Advanced Scripting 77Shell Scripting on Mac OS X 77Creating a Basic Shell Script 78Adding Command-Line Arguments 80Things to Watch Out For 83Using the Script Command 83AppleScripting 84Working with the Open Command 87Summary 90Chapter 7 Administering File Systems 91Understanding File System Basics 91Setting Up the Disk Initially 92Checking Your Disk Setup 92Understanding File System Types 92Creating and Managing File Systems 94Partitioning Hard Disks 94A Better Option: Nondestructive Partitioning 95Mounting and Unmounting File Systems 96Checking File Systems 97Finding Out About File System Use 99Summary 101Chapter 8 Backups and Removable Media 103Backing Up Data to Compressed Archives 103Creating Backup Archives with tar 103Using Compression Tools 105Listing, Joining, and Adding Files to tar Archives 107Backing Up over a Network 107Backing Up tar Archives over ssh 108Backing Up Files with rsync 109Backing Up to CD or DVD 110Working with Time Machine and Time Capsule 111Summary 112Chapter 9 Checking and Running Processes 115Listing Active Processes 116Viewing Active Processes with ps 116Watching Active Processes with top 121Finding and Controlling Processes 123Using grep and pgrep to Find Processes 123Using fuser to Find Processes 124Summary 131Chapter 10 Managing the System 133Monitoring Resources 133Monitoring Memory Use 134Monitoring CPU Usage 135Monitoring Storage Devices 136Mastering Time 137Changing Time Zone 137Displaying and Setting Time and Date 137Using Network Time Protocol to Set Date/Time 139Checking Uptime 139Starting and Stopping Your System 140Straight to the Kernel 141Summary 141Chapter 11 Managing Network Connections 143Configuring Network Interfaces 143Managing Network Interface Cards 144Managing Network Connections 147Starting and Stopping Network Connections 148Starting and Stopping Network Services 149Checking Name Resolution 149Troubleshooting Network Problems 151Checking Connectivity to a Host 152Checking Address Resolution Protocol(ARP) 153Tracing Routes to Hosts 154Displaying netstat Connections and Statistics 156Summary 157Chapter 12 Accessing Network Resources 159Transferring Files 159Downloading Files with Wget 159Transferring Files with curl 161Transferring Files with FTP Commands 162Using SSH Tools to Transfer Files 164Sharing Remote Directories 165Sharing Remote Directories with NFS 165Sharing Remote Directories with Samba 167Chatting with Friends in IRC 172Using Text-Based E-mail Clients 173Summary 175Chapter 13 Remote System Administration 177Remote Login and Tunnelling with SSH 177Configuring SSH 179Logging in Remotely with ssh 179Using screen: A Rich Remote Shell 184Reconnecting to a screen Session 185Naming screen Sessions 186Sharing screen Sessions 186Using a Remote Windows Desktop 186Using Remote Desktop and Applications 187Sharing Your Desktop Using VNC 188Summary 189Chapter 14 Locking Down Security 191Working with Users and Groups 192Managing Users the GUI Way 192Checking on Users 193Configuring the Built-in Firewall 195Working with System Logs 197Summary 197Appendix A Using vi or Vim Editors 199Starting and Quitting the vi Editor 200Moving Around in vi 201Changing and Deleting Text in vi 202Using Miscellaneous Commands 204Modifying Commands with Numbers 204Using Ex Commands 205Working in Visual Mode 206Summary 206Appendix B Shell Special Characters and Variables 207Using Special Shell Characters 207Using Shell Variables 208Appendix C Personal Configuration Files 211Appendix D AppleScript Command Summary 215Appendix E Fink Package Summary 219Appendix F Perl Primer 239Introducing Perl 239Checking Links on a Website 240The Entire Script 241Initializing the Script and Loading Packages 242Targeting the URL and Extracting Links 243Processing the @ links Array 244Running the Script 245Extending the Script 246Index 247