Comptia Linux+ and LPIC Practice Tests Is a Companion Volume to the Comptia Linux+ Study Guide
Total Page:16
File Type:pdf, Size:1020Kb
CompTIA® Linux+ and LPIC Practice Tests CompTIA® Linux+ and LPIC Practice Tests Exams LX0-103/LPIC-1 101-400, LX0-104/LPIC-1 102-400, LPIC-2 201, and LPIC-2 202 Steven Suehring Senior Acquisitions Editor: Kenyon Brown Development Editor: Gary Schwartz Technical Editor: Kevin Ryan Production Editor: Rebecca Anderson Copy Editor: Linda Recktenwald Editorial Manager: Mary Beth Wakefield Production Manager: Kathleen Wisor Executive Editor: Jim Minatel Book Designer: Judy Fung and Bill Gibson Proofreader: Nancy Carrasco Indexer: Ted Laux Project Coordinator, Cover: Brent Savage Cover Designer: Wiley Cover Image: ©Getty Images Inc./Jeremy Woodhouse Copyright © 2017 by John Wiley & Sons, Inc., Indianapolis, Indiana Published simultaneously in Canada ISBN: 978-1-119-37269-1 ISBN: 978-1-119-37270-7 (ebk.) ISBN: 978-1-119-37271-4 (ebk.) Manufactured in the United States of America 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 permit- ted 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 Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permissions. Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or war- ranties 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 professional 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 organization or Web site 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 Web site may provide or recommendations it may make. Further, readers should be aware that Internet Web sites 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 (877) 762-2974, outside the U.S. at (317) 572-3993 or fax (317) 572-4002. Wiley publishes in a variety of print and electronic formats and by print-on-demand. Some material included with standard print versions of this book may not be included in e-books or in print-on-demand. If this book refers to media such as a CD or DVD that is not included in the version you purchased, you may download this material at http://booksupport.wiley.com. For more information about Wiley prod- ucts, visit www.wiley.com. Library of Congress Control Number: 2017934292 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 permission. CompTIA is a registered trademark of Computing Technology Industry Asso- ciation, Inc. All other trademarks are the property of their respective owners. John Wiley & Sons, Inc. is not associated with any product or vendor mentioned in this book. 10 9 8 7 6 5 4 3 2 1 To Jakob and Owen. Acknowledgments After a certain point, writing acknowledgements becomes more difficult than writing the book itself. I’ve reached that point. I’ve stared at this page longer than any other one in this book. It’s impossible to thank adequately everyone who contributes, directly or indirectly, to something like a book. So I won’t. Well, okay, I will a bit. Thanks to everyone at Delta Dental. I had a great experience, and it was an honor com- ing back. To the faculty at UWSP, thank you for welcoming and helping a new faculty member. Thank you Ken Brown and Gary Schwartz; it’s been a pleasure working with you both on another book. Thanks to everyone at Ski’s, for providing the best of the best in both food and service. Of course, no acknowledgements section would be complete without a thank-you to Patti, Jess, Rob, Jim, and Tim at Partners, without whom these pages would have taken longer to write. And always, thank you Kent Laabs for keeping my gear habit going. Looking for- ward to the year. About the Author Steve Suehring is an Assistant Professor of Computing and New Media Technologies at the University of Wisconsin—Stevens Point. Prior to joining the faculty in 2015, Steve gained 20 years of field experience in a variety of technical engineering, system and network administration, and system architectural roles. Steve has written several books and has served as an editor for LinuxWorld magazine. Contents Introduction xv Part I CompTIA Linux+/LPIC-1 1 Chapter 1 System Architecture (Domain 101) 3 Chapter 2 Linux Installation and Package Management(Domain 102) 13 Chapter 3 GNU and Unix Commands (Domain 103) 25 Chapter 4 Devices, Linux Filesystems, and the Filesystem Hierarchy Standard (Domain 104) 39 Chapter 5 Working with Shells, Scripting, and Data Management (Domain 105) 51 Chapter 6 Understanding User Interfaces and Desktops (Domain 106) 63 Chapter 7 Administrative Tasks (Domain 107) 73 Chapter 8 Essential System Services (Domain 108) 85 Chapter 9 Networking Fundamentals (Domain 109) 97 Chapter 10 Security (Domain 110) 109 Part II LPIC-2 119 Chapter 11 Capacity Planning (Topic 200) 121 Chapter 12 Linux Kernel (Topic 201) 129 Chapter 13 System Startup (Topic 202) 139 Chapter 14 Filesystems and Devices (Topic 203) 149 xii Contents Chapter 15 Advanced Storage Device Administration (Topic 204) 157 Chapter 16 Networking Configuration (Topic 205) 165 Chapter 17 System Maintenance (Topic 206) 175 Chapter 18 Domain Name Server (Topic 207) 183 Chapter 19 HTTP Services (Topic 208) 191 Chapter 20 File Sharing (Topic 209) 199 Chapter 21 Network Client Management (Topic 210) 207 Chapter 22 E-Mail Services (Topic 211) 215 Chapter 23 System Security (Topic 212) 223 Chapter 24 Practice Test 1 231 Chapter 25 Practice Test 2 243 Chapter 26 Practice Test 3 255 Chapter 27 Practice Test 4 267 Appendix Answers to Review Questions 279 Index 369 Becoming a CompTIA Certified IT Professional is Easy It’s also the best way to reach greater professional opportunities and rewards. Why Get CompTIA Certified? Growing Demand Higher Salaries Verified Strengths Universal Skills Labor estimates predict some IT professionals with certifications 91% of hiring managers indicate CompTIA certifications are vendor technology fields will experience on their resume command better CompTIA certifications are neutral—which means that growth of over 20% by the year jobs, earn higher salaries and have valuable in validating IT expertise, certified professionals can 2020.* CompTIA certification more doors open to new multi- making certification the best way proficiently work with an qualifies the skills required to industry opportunities. to demonstrate your competency extensive variety of hardware join this workforce. and knowledge to employers.** and software found in most organizations. Learn more about what Purchase a voucher at a Congratulations on your the exam covers by Pearson VUE testing center CompTIA certification! reviewing the following: or at CompTIAstore.com. • Make sure to add your • Exam objectives for • Register for your exam at a certification to your resume. key study points. Pearson VUE testing center: • Check out the CompTIA Certification • Sample questions for a general • Visit pearsonvue.com/CompTIA to Roadmap to plan overview of what to expect find the closest testing center to you. your next career move. on the exam and examples of question format. • Schedule the exam online. You will be required to enter your voucher • Visit online forums, like LinkedIn, to number or provide payment see what other IT professionals say information at registration. about CompTIA exams. • Take your certification exam. Learn more: Certification.CompTIA.org/linuxplus * Source: CompTIA 9th Annual Information Security Trends study: 500 U.S. IT and Business Executives Responsible for Security ** Source: CompTIA Employer Perceptions of IT Training and Certification © 2015 CompTIA Properties, LLC, used under license by CompTIA Certifications, LLC. All rights reserved. All certification programs and education related to such programs are operated exclusively by CompTIA Certifications, LLC. CompTIA is a registered trademark of CompTIA Properties, LLC in the U.S. and internationally. Other brands and company names mentioned herein may be trademarks or service marks of CompTIA Properties, LLC or of their respective owners. Reproduction or dissemination prohibited without written consent of CompTIA Properties, LLC. Printed in the U.S. 02190-Nov2015 Introduction CompTIA Linux+ and LPIC Practice Tests is a companion volume to the CompTIA Linux+ Study Guide. This book helps you to prepare for the certification exams by test- ing your knowledge of the concepts and terminology being used on the exam. Within the book are 1,201 questions, answers, and explanations covering the range of topics neces- sary for the exams. Each of the chapters within the book contains questions specific to a section of the exam.