83484ffirs.fm Page i Thursday, September 21, 2006 11:29 PM Linux ® Administrator Street Smarts A Real World Guide to Linux Certification Skills Roderick W. Smith Wiley Publishing, Inc. 83484ffirs.fm Page vi Thursday, September 21, 2006 11:29 PM 83484ffirs.fm Page i Thursday, September 21, 2006 11:29 PM Linux ® Administrator Street Smarts A Real World Guide to Linux Certification Skills Roderick W. Smith Wiley Publishing, Inc. 83484ffirs.fm Page ii Thursday, September 21, 2006 11:29 PM Acquisitions and Development Editor: Maureen Adams Technical Editor: Randy Muller Production Editor: Sarah Groff-Palermo Copy Editor: Judy Flynn Production Manager: Tim Tate Vice President and Executive Group Publisher: Richard Swadley Vice President and Executive Publisher: Joseph B. Wikert Vice President and Publisher: Neil Edde Book Designers: Judy Fung, Bill Gibson Compositor: Jeffrey Wilson, Happenstance Type-O-Rama Proofreader: Nancy Riddiough Indexer: Ted Laux Cover Designer: Ryan Sneed Anniversary Logo Design: Richard Pacifico Copyright © 2007 by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada ISBN-13: 978-0-470-08348-2 ISBN-10: 0-470-08348-4 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 107 or 108 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-8600. 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-4355, or online at http://www.wiley.com/go/permissions. Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or warranties with respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including without limitation warranties of fitness for a particular purpose. No warranty may be created or extended by sales or promotional materials. The advice and strategies contained herein may not be suitable for every situation. This work is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other pro- fessional services. If professional assistance is required, the services of a competent professional person should be sought. Neither the publisher nor the author shall be liable for damages arising herefrom. The fact that an organi- zation or Website is referred to in this work as a citation and/or a potential source of further information does not mean that the author or the publisher endorses the information the organization or Website may provide or recom- mendations it may make. Further, readers should be aware that Internet Websites listed in this work may have changed or disappeared between when this work was written and when it is read. 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 Cataloging-in-Publication Data is available from the publisher. TRADEMARKS: Wiley, the Wiley logo, and the Sybex logo 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 per- mission. Linux is a registered trademark of Linus Torvalds. 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. 10 9 8 7 6 5 4 3 2 1 83484ffirs.fm Page iii Thursday, September 21, 2006 11:29 PM Acknowledgments Although this book bears my name as author, many other people contributed to its cre- ation. Without their help, this book wouldn’t exist, or at best it would exist in a lesser form. Maureen Adams, the acquisitions editor, helped get the book started. Sarah Groff- Palermo, the production editor, oversaw the book as it progressed through all its stages. Randy Muller, the technical editor, checked the text for technical errors and omissions— but any mistakes that remain are my own. Judy Flynn, the copy editor, helped keep the text grammatical and understandable. Nancy Riddiough, the proofreader, checked the text for typos. I also thank Neil Salkind and others at Studio B, who helped connect me with Wiley to write this book. 83484ffirs.fm Page iv Thursday, September 21, 2006 11:29 PM About the Author Roderick W. Smith is a consultant and writer on computer technology. He has more than a dozen books to his name, mostly about Linux and other open source software. These titles include Linux in a Windows World (O’Reilly, 2005), LPIC-1: Linux Professional Institute Certification Study Guide (Sybex, 2005), and Linux+ Study Guide, Third Edition (Sybex, 2005). He is also the author of Linux Magazine’s monthly “Guru Guidance” column. His Web page is http://www.rodsbooks.com. Rod resides in Woonsocket, Rhode Island. 83484ffirs.fm Page v Thursday, September 21, 2006 11:29 PM Contents at a Glance Introduction xv Chapter 1 Working on the Command Line 1 Chapter 2 Managing Hardware and the Kernel 53 Chapter 3 Managing Software 111 Chapter 4 Documenting the System 159 Chapter 5 Managing Partitions and Filesystems 187 Chapter 6 Configuring Network Features 229 Chapter 7 Managing Security 297 Index 325 83484ffirs.fm Page vi Thursday, September 21, 2006 11:29 PM 83484ftoc.fm Page vii Tuesday, September 19, 2006 9:06 PM Contents Introduction xv Chapter 1 Working on the Command Line 1 Task 1.1: Use Basic Command-Line Features 2 Scenario 2 Scope of Task 3 Procedure 4 Criteria for Completion 10 Task 1.2: Manage Files and Directories 10 Scenario 10 Scope of Task 10 Procedure 11 Criteria for Completion 17 Task 1.3: Manage Links 17 Scenario 17 Scope of Task 17 Procedure 18 Criteria for Completion 20 Task 1.4: Find Files 20 Scenario 20 Scope of Task 20 Procedure 21 Criteria for Completion 23 Task 1.5: Edit Files 23 Scenario 23 Scope of Task 23 Procedure 24 Criteria for Completion 28 Task 1.6: Manage Accounts 28 Scenario 29 Scope of Task 29 Procedure 29 Criteria for Completion 33 Task 1.7: Use Streams, Pipes, and Redirection 33 Scenario 34 Scope of Task 34 Procedure 35 Criteria for Completion 38
Description: