Lpi - Linux System Administration

  • View
    218

  • Download
    0

Embed Size (px)

Text of Lpi - Linux System Administration

  • 8/8/2019 Lpi - Linux System Administration

    1/449

    Linux System Administ

    LSYA-SSMN-9111ARevision 1.0

  • 8/8/2019 Lpi - Linux System Administration

    2/449

    Linux System AdministrationLSYA-SSMN-9111A

    Revision 1.01988-2000 Wave Technologies International, Inc.

    All rights reserved.

    Printed in the United States of America. No part of this book may be used or reproduced in any form or by any means, or stored in a database or retrieval system, without prior writtenpermission of the publisher. Making copies of any part of this book for any purpose other thanyour own personal use is a violation of United States copyright laws. For information, contact Wave Technologies International, Inc., 10845 Olive Blvd., Suite 250, St. Louis, Missouri63141.

    This book is sold as is, without warranty of any kind, either express or implied, respecting thecontents of this book, including, but not limited to, implied warranties for the books quality,performance, merchantability, or fitness for any particular purpose. Neither Wave TechnologiesInternational, Inc., nor its dealers or distributors shall be liable to the purchaser or any other

    person or entity with respect to any liability, loss, or damage caused or alleged to be causeddirectly or indirectly by this book.

    The Linux Professional Institute is a vendor-specific organization and does not endorse this orany other third-party exam preparation materials or techniques.

    Trademarks

    Trademarks and registered trademarks of products mentioned in this book are held by thecompanies producing them. Use of a term in this book should not be regarded as affecting thevalidity of any trademark or service mark.

    The Wave logo is a registered trademark of Wave Technologies International, Inc., St. Louis,Missouri.

    Copyrights of any screen captures in this book are the property of the softwares manufacturer.

    Mention of any products in this book in no way constitutes an endorsement by WaveTechnologies International, Inc.

    10 9 8 7 6 5 4 3 2 1

  • 8/8/2019 Lpi - Linux System Administration

    3/449

    ContentsIntroduction 1

    Course Purpose................................................................................................................. 1Course Goals .................................................................................................................... 2Exercises ........................................................................................................................... 3Videos............................................................................................................................... 3 Assessment........................................................................................................................ 4

    Chapter 1Introduction to Linux Administration 5Objectives......................................................................................................................... 6Pre-Test Questions ........................................................................................................... 6Introduction ..................................................................................................................... 7The System Administrators Role...................................................................................... 7

    General Responsibilities .................................................................................................... 9Supporting Users ............................................................................................................ 10

    The root Account ........................................................................................................... 10The su Command........................................................................................................... 11Exercise 1-1: Using su .................................................................................................... 12Exercise 1-2: Navigating and Using an Administrators Shell ......................................... 15Traditional Administration ............................................................................................. 15

    Administration Shells...................................................................................................... 15Documentation............................................................................................................... 16

    Books.............................................................................................................................. 16Using the Internet........................................................................................................... 17Man Pages ...................................................................................................................... 18Exercise 1-3: Using Man Pages ...................................................................................... 19Info Pages ....................................................................................................................... 20HOWTOs...................................................................................................................... 20Documenting the System................................................................................................ 21Identifying the Linux System .......................................................................................... 22Identifying Active Users .................................................................................................. 23Finding Files ................................................................................................................... 24Exercise 1-4: Using find ................................................................................................. 26The grep Family.............................................................................................................. 27Looking Inside Files........................................................................................................ 28System Default Files........................................................................................................ 29

    Summary ........................................................................................................................ 30Post-Test Questions........................................................................................................ 30

  • 8/8/2019 Lpi - Linux System Administration

    4/449

    iv Contents

    Chapter 2Kernel Modules and Customization 33Objectives....................................................................................................................... 34Pre-Test Questions ......................................................................................................... 34Introduction ................................................................................................................... 35

    Kernel Basics................................................................................................................... 36Structure of the Kernel.................................................................................................... 37Structure of the Source Tree ........................................................................................... 41

    Compiling the Kernel ..................................................................................................... 42Preparing the Source Tree............................................................................................... 42Configuring the Kernel ................................................................................................... 43Compiling ...................................................................................................................... 46Installing......................................................................................................................... 46Exercise 2-1: Rebuilding a Linux Kernel ........................................................................ 47Exercise 2-2: Restoring the Previous Kernelin Case the New One Doesnt Work......... 50

    Modules.......................................................................................................................... 50

    Compiling and Installing ................................................................................................ 51Module Utilities.............................................................................................................. 51Configuring .................................................................................................................... 54

    Kernel Tuning ................................................................................................................ 54Summary ........................................................................................................................ 55Post-Test Questions........................................................................................................ 56

    Chapter 3Package Management 59Objectives....................................................................................................................... 60Pre-Test Questions ......................................................................................................... 60Introduction ................................................................................................................... 61Managing Packages......................................................................................................... 62

    Installing Packages .............................................................................................

Search related