MAC OS X UNIX Toolbox
close menu
Bookswagon
search
My Account
Home > Computing and Information Technology Books > Operating systems > Apple operating systems > MAC OS X UNIX Toolbox: 1000+ Commands for the Mac OS X
MAC OS X UNIX Toolbox: 1000+ Commands for the Mac OS X

MAC OS X UNIX Toolbox: 1000+ Commands for the Mac OS X


     0     
5
4
3
2
1



Out of Stock


Notify me when this book is in stock
X
About the Book

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



Table of Contents:
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

Displaying netstat Connections and Statistics 156

Summary 157

Chapter 12: Accessing Network Resources 159

Transferring Files 159

Downloading Files with wget 159

Transferring Files with curl 161

Transferring Files with FTP Commands 162

Using SSH Tools to Transfer Files 164

Sharing Remote Directories 165

Sharing Remote Directories with NFS 165

Sharing Remote Directories with Samba 167

Chatting with Friends in IRC 172

Using Text-Based E‑mail Clients 173

Summary 175

Chapter 13: Remote System Administration 177

Remote Login and Tunneling with SSH 177

Configuring SSH 179

Logging in Remotely with ssh 179

Using screen: A Rich Remote Shell 184

Reconnecting to a screen Session 185

Naming screen Sessions 186

Sharing screen Sessions 186

Using a Remote Windows Desktop 186

Using Remote Desktop and Applications 187

Sharing Your Desktop Using VNC 188

Summary 189

Chapter 14: Locking Down Security 191

Working with Users and Groups 192

Managing Users the GUI Way 192

Checking on Users 193

Configuring the Built-in Firewall 195

Working with System Logs 197

Summary 197

Appendix A: Using vi or Vim Editors 199

Starting and Quitting the vi Editor 200

Moving Around in vi 201

Changing and Deleting Text in vi 202

Using Miscellaneous Commands 204

Modifying Commands with Numbers 204

Using Ex Commands 205

Working in Visual Mode 206

Summary 206

Appendix B: Shell Special Characters and Variables 207

Using Special Shell Characters 207

Using Shell Variables 208

Appendix C: Personal Configuration Files 211

Appendix D: AppleScript Command Summary 215

Appendix E: Fink Package Summary 219

Appendix F: Perl Primer 239

Introducing Perl 239

Checking Links on a Website 240

The Entire Script 241

Initializing the Script and Loading Packages 242

Targeting the URL and Extracting Links 243

Processing the @links Array 244

Running the Script 245

Extending the Script 246

Index 247



About the Author :
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.


Best Sellers


Product Details
  • ISBN-13: 9780470549407
  • Publisher: John Wiley & Sons Inc
  • Publisher Imprint: John Wiley & Sons Inc
  • Language: English
  • Sub Title: 1000+ Commands for the Mac OS X
  • ISBN-10: 0470549408
  • Publisher Date: 29 Jun 2009
  • Binding: Digital (delivered electronically)
  • No of Pages: 288


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
MAC OS X UNIX Toolbox: 1000+ Commands for the Mac OS X
John Wiley & Sons Inc -
MAC OS X UNIX Toolbox: 1000+ Commands for the Mac OS X
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

MAC OS X UNIX Toolbox: 1000+ Commands for the Mac OS X

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    Fresh on the Shelf


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!
    Your IP: 216.73.216.39 IN