You are previewing Mac OS X Leopard Phrasebook.
O'Reilly logo
Mac OS X Leopard Phrasebook

Book Description

Mac OS® X Leopard Phrasebook

Brian Tiemann

Essential Code and Commands

Mac OS X Leopard Phrasebook gives you the complete command phrases you need to take full advantage of the Leopard’s hidden and undocumented power underneath the graphical user interface: time-saving solutions for effectively working with files, folders, the Finder, Spotlight, text files, servers, disks, CDs/DVDs, permissions, printing, applications, Exposé, networking, security, and much more.

Concise and Accessible

Easy to carry and easy to use–lets you ditch all those bulky books for one portable pocket guide

Flexible and Functional

Packed with more than 100 complete command phrases–so you can make the most of Mac OS X Leopard in just about any situation

Brian Tiemann is a freelance technology columnist and software engineer who has spent more than a decade operating websites on servers running BSD, the technology underlying Mac OS X. A graduate of Caltech, Tiemann is the author of Mac OS X Tiger in a Snap and FreeBSD Unleashed.

Operating Systems / Mac OS X 10.5

Table of Contents

  1. Copyright
  2. About the Author
  3. We Want to Hear from You!
  4. Reader Services
  5. Introduction
    1. Audience for This Book
    2. Conventions Used in This Book
  6. 1. The Structure of Mac OS X
    1. Two Operating Systems in One
    2. Uses for the Command Line
    3. Navigating the Filesystem
    4. Your Home Folder
    5. Coexisting with Other Users
    6. Conclusion
  7. 2. Configuring Your Terminal
    1. Put Terminal in Your Dock
    2. Set Dimensions, Colors, and Titles
    3. Add Custom Key Mappings
    4. Change Your Shell
    5. Execute a Command Upon Opening a Terminal Window or Tab
    6. Save and Restore a Terminal Session
    7. View Your Command History
    8. Run a Previous Command Again
    9. Create a Command Alias
    10. Conclusion
  8. 3. Using the Command Line
    1. Everything Is a File
    2. File Types and Extensions
    3. Maximum Filename Lengths
    4. Case Sensitivity and Case Preservation in Filenames
    5. Special Characters to Avoid in Filenames
    6. Wildcards and What They Mean
    7. Conclusion
  9. 4. Basic Unix Commands
    1. List Items in a Folder
    2. List Items with Sizes and Type Symbols
    3. List Items with Color-Coded Types
    4. List Specific Items Matching a Pattern (Using Wildcards)
    5. View Hidden Files and Folders
    6. List Permissions, Ownership, and Other Details
    7. Sort Contents by Date and Time
    8. Sort Contents by Size
    9. Express File Sizes in Terms of Kilo/Mega/Gigabytes
    10. Find Out What Folder You’re In
    11. Change to a Different Folder
    12. Change to the Folder You’re Viewing in the Finder
    13. Open a Folder in the Finder
    14. Change to Your Home Folder
    15. Create a New Folder
    16. Create a New Series of Embedded Folders
    17. Duplicate a File
    18. Duplicate Files Extra Safely
    19. Duplicate Multiple Files Using Wildcards
    20. Duplicate a Folder
    21. Duplicate Folders While Preserving Important File Information
    22. Move or Rename a File
    23. Delete a File
    24. Delete Multiple Files Using Wildcards
    25. Delete Files Extra Safely
    26. Delete a Folder
    27. Delete Troublesome Files
    28. Issue a Privileged Command Using sudo
    29. Read About a Command with man
    30. Search for More Commands Based on Function
    31. Conclusion
  10. 5. Using the Finder
    1. Files, Folders, Aliases, and Bundles
    2. Customize Icon View
    3. Customize List View
    4. Get Detailed File Info
    5. Create an Alias to a File or Folder
    6. Create a Symbolic Link
    7. Find Files by Name or Contents
    8. Find Files by Kind, Date, or Other Attributes
    9. Save a File Search as a Smart Folder
    10. Look Inside a Bundle
    11. Take a Screenshot
    12. Conclusion
  11. 6. Viewing and Editing Text Files
    1. Edit a Text File in TextEdit
    2. Edit a Text File in Nano
    3. Display a Text File on the Command Line (Using cat)
    4. Display a Text File Using a Pager (less)
    5. Search for Text Within the Pager
    6. View the First Few Lines of a File
    7. View the Last Few Lines of a File
    8. View the Tail of a File as It Is Continuously Updated
    9. Seek for Patterns Within a Text File
    10. Send Filtered Output from a Command into Another Command or Text File
    11. Synthesize a Text File into Speech
    12. Create a Compressed ZIP Archive of a File or Folder
    13. Conclusion
  12. 7. Ownership and Permissions
    1. Change the Owner of a File or Folder
    2. Change the Group Owner of a File or Folder
    3. Change an Item’s Permissions Symbolically
    4. Change an Item’s Permissions Numerically
    5. Change Ownership or Permissions Recursively
    6. Change an Item’s Ownership and Permissions Graphically
    7. Graphically Configure Access Control Lists
    8. Conclusion
  13. 8. Printing
    1. Set Up a Local (USB) Printer
    2. Set Up a Network Printer
    3. Print Files in Any Application
    4. Print Files Using Drag-and-Drop
    5. Print from the Command Line
    6. List a Printer’s Pending Jobs
    7. Cancel a Print Job
    8. Troubleshoot a Problematic Print Job
    9. Conclusion
  14. 9. Working with Applications
    1. Install an Application
    2. Deinstall an Application
    3. Find Common Application Functions
    4. Change a File’s Default Opener Application
    5. Quit Applications to Conserve Memory
    6. Force Quit Misbehaving Applications
    7. Restore an Application to Its Default Settings
    8. Find Application Windows with Exposé
    9. Expand Desktop Real Estate with Spaces
    10. Automate a Workflow
    11. Schedule a Recurring Command
    12. Monitor System Performance
    13. Conclusion
  15. 10. Working with Disks
    1. Monitor Disk Usage
    2. Add a New Hard Disk to the System
    3. Create a Disk Image
    4. Create an Encrypted Disk Image
    5. Lock and Encrypt an Existing Disk Image
    6. Conclusion
  16. 11. Burning a CD or DVD
    1. Put Files on a Blank Disc
    2. Burn a Disc in the Finder
    3. Save a Burn Folder
    4. Make an ISO Image from a CD or DVD
    5. Burn a CD or DVD from a Disk Image
    6. Conclusion
  17. 12. Connecting to a Network
    1. Connect to a Wireless Network
    2. Connect to an Ethernet Network with DHCP
    3. Connect to an Ethernet Network with Manual TCP/IP Settings
    4. Connect to a Dial-up Network
    5. Check Network Connectivity
    6. Protect Yourself with a Firewall
    7. Conclusion
  18. 13. Using Locations
    1. Create a New Location
    2. Configure Network Settings for a Location
    3. Place Network Services in Preference Order
    4. Add and Remove Network Services
    5. Switch Locations as You Move
    6. Conclusion
  19. 14. Sharing Files and Resources
    1. Allow Secure Remote Terminal Access
    2. Allow File Sharing by Other Macs
    3. Allow File Sharing by Windows Computers
    4. Connect to a Shared Disk Resource on a Mac
    5. Connect to a Shared Disk Resource on a Windows Computer
    6. Connect to a Shared NFS Resource
    7. Connect to a WebDAV Resource
    8. Connect to an FTP Server
    9. Disconnect from a Shared Resource
    10. Conclusion
  20. 15. Command-Line Networking Tools
    1. Check Network Connectivity with Ping
    2. Trace the Route to Another Computer with Traceroute
    3. Connect to a Remote Mac or Unix Computer Using SSH
    4. Transfer Files Using FTP and SFTP
    5. Transfer Files Securely Using SCP
    6. Download Web Files Using curl
    7. Conclusion