. 1
( 69 .)



>>

Unix for Mac ® ®




Your visual blueprint to maximizing„




the foundation of Mac OS X
®




Productivity tools and more on CD-ROM!
• OpenOffice.org, Gimp, XFree86, Fink, and other
open source software
• A searchable e-version of the book and more
 
Unix for Mac
Your visual blueprintTM to maximizing
the foundation for Mac OS  X
by Sandra Henry-Stocker and Kynn Bartlett




TM




From
®



&
UNIX® for Mac®: Your visual blueprintTM
to maximizing the foundation of Mac OS® X
FOR PURPOSES OF ILLUSTRATING THE CONCEPTS AND
Published by
TECHNIQUES DESCRIBED IN THIS BOOK, THE AUTHOR HAS
Wiley Publishing, Inc.
CREATED VARIOUS NAMES, COMPANY NAMES, MAILING, E-MAIL
909 Third Avenue
AND INTERNET ADDRESSES, PHONE AND FAX NUMBERS AND
New York, NY 10022
SIMILAR INFORMATION, ALL OF WHICH ARE FICTITIOUS. ANY
Published simultaneously in Canada RESEMBLANCE OF THESE FICTITIOUS NAMES, ADDRESSES,
PHONE AND FAX NUMBERS AND SIMILAR INFORMATION TO
Copyright © 2003 by Wiley Publishing, Inc., Indianapolis, Indiana
ANY ACTUAL PERSON, COMPANY AND/OR ORGANIZATION IS
Certain designs and text Copyright © 1992-2003 maranGraphics, UNINTENTIONAL AND PURELY COINCIDENTAL.
Inc., used with maranGraphics' permission.
maranGraphics, Inc.
Important Numbers
5755 Coopers Avenue
Mississauga, Ontario, Canada For U.S. corporate orders, please call maranGraphics at
L4Z 1R9 800-469-6616 or fax 905-890-9434.
No part of this publication may be reproduced, stored in a retrieval For general information on our other products and services or
system or transmitted in any form or by any means, electronic, to obtain technical support please contact our Customer Care
mechanical, photocopying, recording, scanning or otherwise, except Department within the U.S. at 800-762-2974, outside the U.S.
as permitted under Sections 107 or 108 of the 1976 United States at 317-572-3993 or fax 317-572-4002.
Copyright Act, without either the prior written permission of the
Publisher, or authorization through payment of the appropriate per-
Permissions
copy fee to the Copyright Clearance Center, 222 Rosewood Drive,
Danvers, MA 01923, (978) 750-8400, fax (978) 646-8700. Requests
maranGraphics
to the Publisher for permission should be addressed to the Legal
Certain text and illustrations by maranGraphics, Inc., used
Department, Wiley Publishing, Inc., 10475 Crosspoint Blvd.,
with maranGraphics' permission.
Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4447,
E-mail: permcoordinator@wiley.com.
Library of Congress Control Number: 2003101791
ISBN: 0-7645-3730-X Truly a 19th century architectural wonder, London's Tower Bridge took
432 construction workers eight years to build. Architect Horace Jones
Manufactured in the United States of America
designed the massive bascule bridge ” a type of counterweighted
drawbridge ” and at its completion in 1894, it was the largest and most
10 9 8 7 6 5 4 3 2 1
sophisticated of its kind ever built. Discover more about London's
1V/RX/QU/QT/IN historic architecture in Frommer's London 2003, available wherever books
are sold or at www.frommers.com

Trademark Acknowledgments
Wiley, the Wiley Publishing logo, Visual, the Visual logo, Visual
Blueprint, Read Less - Learn More and related trade dress are
trademarks or registered trademarks of Wiley Publishing, Inc. in
the United States and other countries and may not be used without
written permission. The maranGraphics logo is a trademark or
registered trademark of maranGraphics, Inc. UNIX is a trademark
of American Telephone and Telegraph Company. Mac OS is a
trademark of Apple Computer, Inc. All other trademarks are the
property of their respective owners. Wiley Publishing, Inc. and
maranGraphics, Inc. are not associated with any product or vendor
mentioned in this book.
is a trademark of
Wiley Publishing, Inc.

LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: WHILE THE PUBLISHER AND AUTHOR HAVE
USED THEIR BEST EFFORTS IN PREPARING THIS BOOK, THEY MAKE NO REPRESENTATIONS
OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS
U.S. Corporate Sales U.S. Trade Sales
OF THIS BOOK AND SPECIFICALLY DISCLAIM ANY IMPLIED WARRANTIES OF MERCHANTABILITY
OR FITNESS FOR A PARTICULAR PURPOSE. NO WARRANTY MAY BE CREATED OR EXTENDED
BY SALES REPRESENTATIVES OR WRITTEN SALES MATERIALS. THE ADVICE AND STRATEGIES
Contact maranGraphics Contact Wiley
CONTAINED HEREIN MAY NOT BE SUITABLE FOR YOUR SITUATION. YOU SHOULD CONSULT
at (800) 469-6616 or at (800) 762-2974
WITH A PROFESSIONAL WHERE APPROPRIATE. NEITHER THE PUBLISHER NOR AUTHOR
SHALL BE LIABLE FOR ANY LOSS OF PROFIT OR ANY OTHER COMMERCIAL DAMAGES,
fax (905) 890-9434. or fax (317) 572-4002.
INCLUDING BUT NOT LIMITED TO SPECIAL, INCIDENTAL, CONSEQUENTIAL, OR OTHER
DAMAGES.
PRAISE VISUAL
FOR BOOKS...


This is absolutely the best computer-related book I have ever I have quite a few of your Visual books and have been
bought. Thank you so much for this fantastic text. Simply the very pleased with all of them. I love the way the lessons are
best computer book series I have ever seen. I will look for, presented!
recommend, and purchase more of the same.
“Mary Jane Newman (Yorba Linda, CA)
“David E. Prince (NeoNome.com)
I am an avid fan of your Visual books. If I need to learn
I have always enjoyed your Visual books, as they provide a anything, I just buy one of your books and learn the topic in
quick overview of functions. Visual books are helpful even no time. Wonders! I have even trained my friends to give me
for technically inclined individuals who don™t have the time to Visual books as gifts.
read thick books in order to get the job done. As a frequent
“Illona Bergstrom (Aventura, FL)
traveler, I am extremely grateful to you for providing a pdf
version of each book on a companion CD-ROM. I can easily
I just had to let you and your company know how great I
refer to your book while on the road without much additional
think your books are. I just purchased my third Visual book
weight.
(my first two are dog-eared now!) and, once again, your
product has surpassed my expectations. The expertise,
“Kin C. Wong (Calgary, Alberta, Canada)
thought, and effort that go into each book are obvious, and I
I just want to let you know that I really enjoy all your books. sincerely appreciate your efforts.
I™m a strong visual learner. You really know how to get
“Tracey Moore (Memphis, TN)
people addicted to learning! I™m a very satisfied Visual
customer. Keep up the excellent work!
Compliments to the chef!! Your books are extraordinary! Or,
simply put, extra-ordinary, meaning way above the rest!
“Helen Lee (Calgary, Alberta, Canada)
THANK YOU THANK YOU THANK YOU! I buy them for friends,
These Visual Blueprints are great books! I just purchased family, and colleagues.
ASP 3.0 “ it could not have introduced programming with
“Christine J. Manfrin (Castle Rock, CO)
ASP any easier!

I write to extend my thanks and appreciation for your books.
“Joseph Moglia (St. Louis, MO)
They are clear, easy to follow, and straight to the point.
This book is PERFECT for me - it™s highly visual and gets Keep up the good work! I bought several of your books and
right to the point. What I like most about it is that each they are just right! No regrets! I will always buy your books
page presents a new task that you can try verbatim or, because they are the best.
alternatively, take the ideas and build your own examples.
“Seward Kollie (Dakar, Senegal)
Also, this book isn™t bogged down with trying to “tell all” “
it gets right to the point. This is an EXCELLENT, EXCELLENT,
Thank you for making it clear. Keep up the good work.
EXCELLENT book and I look forward purchasing other books
in the series.
“Kirk Santoro (Burbank, CA)
“Tom Dierickx (Malta, IL)
Feb 03
maranGraphics is a family-run business
located near Toronto, Canada.




At maranGraphics, we believe in producing great rebuild every screen shot to provide the best clarity
computer books ” one book at a time. possible, making our screen shots the most precise and
easiest to read in the industry. We strive for perfection,
maranGraphics has been producing high-technology and believe that the time spent handcrafting each
products for over 25 years, which enables us to offer the element results in the best computer books money
computer book community a unique communication can buy.
process.
Thank you for purchasing this book. We hope you
Our computer books use an integrated communication enjoy it!
process, which is very different from the approach used
in other computer books. Each spread is, in essence, a Sincerely,
flow chart ” the text and screen shots are totally
Robert Maran
incorporated into the layout of the spread. Introductory
text and helpful tips complete the learning experience. President
maranGraphics
maranGraphics' approach encourages the left and right
Rob@maran.com
sides of the brain to work together ” resulting in faster
www.maran.com
orientation and greater memory retention.
Above all, we are very proud of the handcrafted nature
of our books. Our carefully-chosen writers are experts
in their fields, and spend countless hours researching
and organizing the content for each topic. Our artists
CREDITS

Project Editors Book Design
Kathleen McFadden maranGraphics®
Jade L. Williams
Layout
Carrie Foster
Acquisitions Editor
LeAndra Johnson
Jody Kennen
Joyce Haughey
Kristin McMullan
Product Development Manager Heather Pope
Lindsay Sandman
Screen Artist
Copy Editors Jill A. Proll
Jill Mazurczyk
Marylouise Wiack Cover Illustration
David E. Gregory
Technical Editor
Erick Tejkowski Proofreader
Laura L. Bowman
Editorial Manager
Rev Mengle Quality Control
John Tyler Connoley
Andy Hollandbeck
Permissions Editor
Angel Perez
Laura Moss
Indexer
Media Development Specialist Joan Griffitts
Gregory Stafford
Vice President and Executive
Manufacturing Group Publisher
Allan Conley Richard Swadley
Linda Cook
Paul Gilchrist Vice President and Publisher
Jennifer Guynn Barry Pruett

Production Coordinator Composition Director
Nancee Reeves Debbie Stailey
TABLE OF CONTENTS


HOW TO USE THIS BOOK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii

1) GET STARTED WITH UNIX
Introduction to Unix ............................................................................................................2
Start the Terminal Application ............................................................................................4
Configure the Terminal Application ..................................................................................6
Enter Unix Shell Commands ..............................................................................................8
Shell Command Concepts ................................................................................................10
Read the Unix Manual ......................................................................................................12
Exit the Terminal Window ................................................................................................14


2) WORK WITH FILES
List Files ..............................................................................................................................16
Show Hidden Files ............................................................................................................17
Show File Attributes ..........................................................................................................18
Copy A File ........................................................................................................................20
Designate Files by Pathname ............................................................................................21

. 1
( 69 .)



>>