Unix For Dummies
John R. LevineMargaret Levine Young
UNIX For Dummies, 5th Edition
Published by
Wiley Publishing, Inc.111 River Street
Hoboken, NJ 07030-5774
Copyright 2004 by Wiley Publishing, Inc., Indianapolis, Indiana
Published by Wiley Publishing, Inc., Indianapolis, Indiana
Published simultaneously in Canada
No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 108 or 109 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8700. Requests to the Publisher for permission should be addressed to the Legal Department, Wiley Publishing, Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4447, e-mail:permcoordinator@wiley.com .
Trademarks: Wiley, the Wiley Publishing logo, For Dummies, the Dummies Man logo, A Reference for the Rest of Us!, The Dummies Way, Dummies Daily, The Fun and Easy Way, Dummies.com, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates in the United States and other countries, and may not be used without written permission. UNIX is a registered trademark of UNIX Systems Laboratories, Inc. All other trademarks are the property of their respective owners. Wiley Publishing, Inc., is not associated with any product or vendor mentioned in this book.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 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 contained herein may not be suitable for your situation. You should consult with a professional where appropriate. Neither the publisher nor author shall be liable for any loss of profit or any other commercial damages, including but not limited to special, incidental, consequential, or other damages.For general information on our other products and services or to obtain technical support, please contact our Customer Care Department within the U.S. at 800-762-2974, outside the U.S. at 317-572-3993, or fax 317-572-4002.Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books.Library of Congress Control Number available from publisher.ISBN: 0-7645-4147-1
Manufactured in the United States of America
10 9 8 7 6 5 4 3 2 1
5O/QZ/QR/QU/IN
About the Authors
John R. Levine was a member of a computer club in high school — before high school students, or even high schools, had computers — where he met Theodor H. Nelson, the author of Computer Lib/Dream Machines and the inventor of hypertext, who reminded us that computers should not be taken seriously and that everyone can and should understand and use computers.John wrote his first program in 1967 on an IBM 1130 (a computer somewhat less powerful than your typical modern digital wristwatch, only more difficult to use). He became an official system administrator of a networked computer running UNIX at Yale in 1975. He began working part-time (for a computer company, of course) in 1977 and has been in and out of the computer and network biz ever since. He got his company on Usenet (the Internet’s worldwide bulletin-board system) early enough that it appears in a 1982 Byte magazine article on a map of Usenet, which then was so small that the map fit on half a page.Although John used to spend most of his time writing software, now he mostly writes books (including UNIX For Dummies and Privacy For Dummies, both published by Wiley Publishing, Inc.) because it’s more fun and he can do so at home in the tiny village of Trumansburg, New York, where he is the sewer commissioner (Guided tours! Free samples!) and can play with his small daughter when he’s supposed to be writing. John also does a fair amount of public speaking. (Go to
www.johnlevine.com to see where he’ll be.) He holds a BA and a PhD in computer science from Yale University, but please don’t hold that against him.In high school, Margaret Levine Young was in the same computer club as her big brother, John. She stayed in the field throughout college against her better judgment and despite John’s presence as a graduate student in the computer science department. Margy graduated from Yale and went on to become one of the first PC managers in the early 1980s at Columbia Pictures, where she rode the elevator with big stars whose names she wouldn’t dream of dropping here.Since then, Margy has co-authored more than 25 computer books about the topics of the Internet, UNIX, WordPerfect, Microsoft Access, and (stab from the past) PC-File and Javelin, including Dummies 101: The Internet For Windows 98, UNIX For Dummies, and WordPerfect For Linux For Dummies (all published by Wiley Publishing, Inc.), and Windows XP: The Complete Reference and Internet: The Complete Reference (published by Osborne/McGraw-Hill). She met her future husband, Jordan, in the R.E.S.I.S.T.O.R.S. (that computer club we mentioned). Her other passion is her children, along with music, Unitarian Universalism (
www.uua.org ), reading, and anything to do with eating. She lives in Vermont (see
www.gurus.com/margy for some scenery).Dedication
John and Margy both dedicate this book to their dad, wherever he is. When last sighted, he was traveling somewhere in China finding out just how great the wall is, unless he was at the beach here in the U.S. — he’s a man who knows how to live!Authors’ Acknowledgments
The authors thank Antonia Saxon, Jordan Young, Sarah Willow Levine Saxon, Meg Young, and Zac Young for putting up with us while we updated this book. Thanks also go to our Internet providers: Finger Lakes Technologies Group and the Trumansburg Home Telephone Company (Trumansburg, NY), the Shoreham Telephone Company (Shoreham, VT), and SoVerNet (Bellows Falls, VT).We thank Peter Seebach for research and revisions (you can guess what that really means) on KDE and GNOME in Chapters 4 and 17, and Nancy McGough for helping make our comments on Linux bear at least some relation to reality.Chris Morris patiently shepherded the text from our hazy scribblings (electronically speaking) to a printed book with a blend of patience and midnight wit. He got lots of help, of course, from all the folks listed on the other side of this page.Publisher’s Acknowledgments
We’re proud of this book; please send us your comments through our online registration form located at
www.dummies.com/register/ .Some of the people who helped bring this book to market include the following:Acquisitions, Editorial, and Media Development
Project Editor
Christopher Morris
(Previous Edition
Rebecca Whitney)
Acquisitions Editor
Steven Hayes
Copy Editor
Rebecca Senninger
Technical Editor
James F. Kelly
Editorial Manager
Kevin Kirschner
Permissions Editor
Laura Moss
Media Development Specialist
Travis Silvers
Media Development Manager
Laura VanWinkle
Media Development Supervisor
Richard Graves
Editorial Assistant
Amanda Foxworth
Cartoons
Rich Tennant (
www.the5thwave.com )
Production
Project Coordinator
Courtney MacIntyre
Layout and Graphics
Seth Conley
Andrea Dahl
Lauren Goddard
Stephanie D. Jumper
Barry Offringa
Heather Ryan
Mary Gillot Virgin
Melanie Wolven
Proofreaders
Laura Albert
Andy Hollandbeck
Kathy Simpson
TECHBOOKS Publishing Services
Indexer
TECHBOOKS Publishing Services
Publishing and Editorial for Technology Dummies
Vice President and Executive Group Publisher
Richard Swadley
Vice President and Publisher
Andy Cummings
Editorial Director
Mary C. Corder
Publishing for Consumer Dummies
Vice President and Publisher
Diane Graves Steele
Acquisitions Director
Joyce Pepple
Composition Services
Vice President of Production Services
Gerry Fahey
Director of Composition Services
Debbie Stailey