CompTIA Linux+ Practice Tests: Exam XK0-005 (2022)

Ace your certification with CompTIA Linux+ Practice Tests: Exam XK0-005 (2022), packed with essential study resources.

David Rodriguez
Contributor
4.9
85
9 months ago
Preview (31 of 275 Pages)
100%
Purchase to unlock

Page 1

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 1 preview image

Loading page image...

T=StudyX

Page 2

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 2 preview image

Loading page image...

DownloadedfromStudyXY.com&+StudyXY~~as.aTBStudy[|AnythingThisContentHasbeenPostedOnStudyXY.comassupplementarylearningmaterial.StudyXYdoesnotendroseanyuniversity,collegeorpublisher.Allmaterialspostedareundertheliabilityofthecontribu:ors.wv6)www.studyxy.com

Page 3

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 3 preview image

Loading page image...

T=StudyX

Page 4

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 4 preview image

Loading page image...

onExamVouchers*

Page 5

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 5 preview image

Loading page image...

T=StudyX

Page 6

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 6 preview image

Loading page image...

Linux+ThirdEditionSteveSuehringCusmex

Page 7

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 7 preview image

Loading page image...

Copyright©2022byJohnWiley&Sons,Inc.Allrightsreserved.PublishedbyJohnWiley&Sons,Inc.,Hoboken,NewJersey.PublishedsimultaneouslyinCanada.978-1-119-87961-9978-1-119-87962-6(ebk.)978-1-119-87963-3(ebk.)Nopartofthispublicationmaybereproduced,storedinaretrievalsystem,ortransmittedinanyformorbyanymeans,electronic,mechanical,photocopying,recording,scanning,orotherwise,exceptaspermittedunderSection107or108ofthe1976UnitedStatesCopyrightAct,withouteitherthepriorwrittenpermissionofthePublisher,orauthorizationthroughpaymentoftheappropriateper-copyfeetotheCopyrightClearanceCenter,Inc.,222RosewoodDrive,Danvers,MA01923,(978)750-8400,fax(978)750-4470,oronthewebatwwwcopyright.com.RequeststothePublisherforpermissionshouldbeaddressedtothePermissionsDepartment,JohnWiley&Sons,Inc.,111RiverStreet,Hoboken,NJ07030,(201)748-6011,fax(201)748-6008,oronlineatwww.wiley.com/go/permission.Trademarks:WILEY,theWileylogo,andtheSybexlogoaretrademarksorregisteredtrademarksofJohnWiley&Sons,Inc.and/oritsaffiliates,intheUnitedStatesandothercountries,andmaynotbeusedwithoutwrittenpermission.CompTIAandLinux+aretrademarksorregisteredtrademarksofCompTIA,Inc.Allothertrademarksarethepropertyoftheirrespectiveowners.JohnWiley&Sons,Inc.isnotassociatedwithanyproductorvendormentionedinthisbook.LimitofLiability/DisclaimerofWarranty:Thepublisherandtheauthormakenorepresentationsorwarrantieswithrespecttotheaccuracyorcompletenessofthecontentsofthisworkandspecificallydisclaimallwarranties,includingwithoutlimitationwarrantiesoffitnessforaparticularpurpose.Nowarrantymaybecreatedorextendedbysalesorpromotionalmaterials.Theadviceandstrategiescontainedhereinmaynotbesuitableforeverysituation.Thisworkissoldwiththeunderstandingthatthepublisherisnoengagedinrenderinglegal,accounting,orotherprofessionalservices.Ifprofessionalassistanceisrequired,theservicesofacompetentprofessionalpersonshouldbesought.Neitherthepublishernortheauthorshallbeliablefordamagesarisingherefrom.ThefactthatanorganizationorWebsiteisreferredtointhisworkasacitationand/orapotentialsourceoffurtherinformationdoesnotmeanthattheauthororthepublisherendorsestheinformationtheorganizationorWebsitemayprovideorrecommendationsitmaymake.Further,readersshouldbeawaretheInternetWebsiteslistedinthisworkmayhavechangedordisappearedbetweenwhenthisworkwaswrittenandwhenitisread.Forgeneralinformationonourotherproductsandservicesorfortechnicalsupport,pleasecontactourCustomerCareDepartmentwithintheUnitedStatesat(800)762-2974,outsidetheUnitedStatesat(317)572-3993orfax(317)572-4002.Wileyalsopublishesitsbooksinavarietyofelectronicformats.Somecontentthatappearsinprintmaynotbeavailableinelectronicformats.FormoreinformationaboutWileyproducts,visitourwebsiteatwww.wiLey.com.LibraryofCongressControlNumber:2022932612Coverimage:©JeremyWoodhouse/GettyImagesCoverdesign:WileyStudy

Page 8

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 8 preview image

Loading page image...

AcknowledgmentsThankyoutoKenyonBrown,KimWimpsett,andtheteamresponsibleforbringingthistitletoandthroughthepublicationprocess.1StudyX

Page 9

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 9 preview image

Loading page image...

T=StudyX

Page 10

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 10 preview image

Loading page image...

AbouttheAuthorSteveSuchringisanassociateprofessorofComputingandNewMediaTechnologiesattheUniversityofWisconsin-StevensPoint.PriortojoiningthefacultyatUWSP,Steveworkedinindustryformanyyears.Stevehaswrittenseveraltechnicalbooks.Moreinformationisavailableatwww.braingia.orgorfollowhimonTwitter:@stevesuehring.AbouttheTechnicalEditorJasonW.Eckertisanexperiencedtechnicaltrainer,systemsarchitect,softwareengineer,andbest-sellingauthorinthetechnologyindustry.With45industrycertifications,over30yearsoftechnologyandprogrammingexperience,4publishedapps,and25publishedtextbookscoveringUNIX,Linux,security,WindowsServer,MicrosoftExchangeServer,PowerShell,BlackBerryEnterpriseServer,andvideogamedevelopment,Mr.EckertbringshisexpertisetoeveryclassthatheteachesattriOSCollege.Hewasalsonamed2019OutstandingTrain-the-TrainerfromtheComputingTechnologyIndustryAssociation(CompTIA).FormoreinformationaboutMr.Eckert,visitjasoneckert.net.Study

Page 11

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 11 preview image

Loading page image...

T=StudyX

Page 12

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 12 preview image

Loading page image...

ContentsIntroductionxiChapter1SystemManagement(Domain1.0)1Chapter2SystemOperationsandMaintenance(Domain2.0)a9Chapter3Scripting,Containers,andAutomation(Domain3.0)83Chapter4Troubleshooting(Domain4.0)113Chapter5PracticeExam157AppendixAnswerstotheReviewQuestions175Chapter1:SystemManagement(Domain1.0)176Chapter2:SystemOperationsandMaintenance(Domain2.0)197Chapter3:Scripting,Containers,andAutomation(Domain3.0)211Chapter4:Troubleshooting(Domain4.0)224Chapter5:PracticeExam241Index249T=StudyX

Page 13

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 13 preview image

Loading page image...

T=StudyX

Page 14

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 14 preview image

Loading page image...

IntroductionThisbookprovidespracticequestionsfortheCompTIALinux+certificationExamXKO0-005.Thequestionsaremultiplechoice,andthedifficultylevelsvary.Thebalanceofques-tionscloselymirrorstheexamobjectiveweightinginemphasisofcertaintechnologies.HowtoGetLinux+CertifiedTestsareadministeredbyCompTIA’sglobaltestingpartner,PearsonVUE.Formoreinformationontakingtheexam,visittheCompTIAwebsiteatwww.comptia.org.YoucanalsovisitPearsonVUEatwww.pearsonvue.com.HowtoUseThisBookandtheInteractiveOnlineLearningEnvironmentandTestBankThisbookisintendedasasupplementtoCompTIALinux+StudyGuideExamXKO0-005,SthEdition.Ideally,youalreadyownthattitleandcanusethepracticequestionsinthisbookasyouworkthroughtheobjectives.Thisbookcontains1,000questionsrelatedtotechnologiesthathavebeenidentifiedbyCompTIAasnecessaryforanindividualtoobtainLinux+certification.Ifyouhavethereq-uisiteskillsandexperience,thenyoucanattemptthequestionswithinthebook,lookingupanswersasneeded.Thebookcanalsobeusedtoidentifyareaswhereyoumayneedtoseekoutadditionalexperienceandknowledge.Theonlinetestbankatwww.wiley.com/go/sybextestprepincludesalltheques-tionsfromthebook.Takethesepracticeexamsjustasifyouweretakingtheactualexam(withoutanyreferencematerial).Ifyougetmorethan90percentoftheanswerscorrect,you'rereadytotakethecertificationexams.Study

Page 15

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 15 preview image

Loading page image...

xiiIntroductionLikeallexams,theLinux+certificationfromCompTIAisupdatedperi-TEodicallyandmayeventuallyberetiredorreplaced.AtsomepointafterCompTIAisnolongerofferingthisexam,theoldeditionsofourbooksandonlinetoolswillberetired.Ifyouhavepurchasedthisbookaftertheexamwasretired,orareattemptingtoregisterintheSybexonlinelearningenvironmentaftertheexamwasretired,pleaseknowthatwemakenoguaranteesthatthisexam’sonlineSybextoolswillbeavailableoncetheexamisnolongeravailable.Gotowww.wiley.com/go/sybextestpreptoregisterandgainaccesstothisinteractiveonlinelearningenvironmentandtestbankwithstudytools.Examobjectivescanbefoundatwww.comptia.org/certifications/linux.Ifyoubelieveyou'vefoundamistakeinthisbook,pleasebringittoourattention.AtJohnWiley&Sons,weunderstandhowimportantitistoprovideourcustomerswithaccuratecontent,butevenwithourbesteffortsanerrormayoccur.Inordertosubmityourpossibleerrata,pleaseemailittoourCustomerServiceTeamatwileysupport@wiley.comwiththesubjectline“PossibleBookErrataSubmission.”Study)

Page 16

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 16 preview image

Loading page image...

ChapterSystemManagement1(Domain1.0)

Page 17

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 17 preview image

Loading page image...

2Chapter1=SystemManagement(Domain1.0)1.Whichcommandisusedtoloadamoduleanditsdependenciesautomatically?A.modprobeB.lsmodC.insmodD.rmmod2.WhichoptiongivenatboottimewithintheGRUB2bootentryconfigurationwillbootthesystemintosingle-usermode?A.single-userB.suC.singleD.root3.Whatisthecommandtodisplaythedefaulttargetonacomputerrunningsystemd?A.systemctldefaultsB.update-rc.ddefaultsC.systemctlrunlevelD.systemctlget-default4.WhichcommandisusedtoobtainalistofUSBdevices?A.usb-listB.lsusbC.ls-usbD.1s--usb5.Whichcommandcanbeusedtoobtainalistofcurrentlyloadedkernelmodules?A.insmodB.modlistC.1s--modulesD.1lsmod6.WhenrunningwithaUnifiedExtensibleFirmwareInterface(UEFI)system,towhichparti-tionwilltheEFIsystempartitiontypicallybemounted?A.Jetc/efiB./efiC./sys/efiD./boot/efi

Page 18

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 18 preview image

Loading page image...

Chapter1=SystemManagement(Domain1.0)37.AssumingthataUSBdiskcontainsasinglepartitionandismadeavailableon/dev/sdb,whichcommandmountsthediskin/media/usb?A.mount/dev/sdbl/media/usbB.usbconnect/dev/sdbo/media/usbC.mount/dev/sdbo/media/usbD.usbmount/dev/sdbl/media/usb8.Whatisonereasonadevicedriverdoesnotappearintheoutputof1smod,eventhoughthedeviceisloadedandworkingproperly?A.Theuseofsystemdmeansdriversarenotrequiredformostdevices.B.Theuseofaninitrd.imgmeanssupportisenabledbydefault.C.Thesystemdoesnotneedadriverforthedevice.D.Supportforthedevicehasbeencompileddirectlyintothekernel.9.Whichoptiontormmodwillcausethemoduletowaituntilit’snolongerinusetounloadthemodule?A.-testB.-bC.-wD.-unload10.WhichcommandwilloutputanewGRUBconfigurationfileandsendtheoutputtothecorrectlocationforbooting?A.update-grubB.update-grubboot>/boot/grub.cfgC.grub-rc.dD.grub-boot11.WhatisthemaximumnumberofprimarypartitionsavailableonanMBRpartition-ingsystem?A.TwoB.FourC.OneD.Five12.Whenworkingwithdiskpartitionsthroughatoollikefdisk,youseethetype0x82.Whichtypeofpartitionisthis?A.LinuxB.LinuxswapC.NTFSD.FAT

Page 19

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 19 preview image

Loading page image...

4Chapter1=SystemManagement(Domain1.0)13.WhichfileshouldyoueditwhenusingGRUBZinordertodefineorsetoptionslikethetimeout?A./etc/default/grubB./etc/grub/bootC./etc/boot/grub.dD./grub.d/boot14.Whichoptionforthegrub2-mkconf+igcommandsendsoutputtoafileinsteadofSTDOUT?A.-stdoutB.--fileoutC.-oD.-f15.Ofthefollowingchoices,whichsizewouldbemostappropriateforthe/bootpartitionofaLinuxsystem?A.Atleast1GB.B.Between100MBand200MB.C./bootshouldnotbepartitionedseparately.D.Lessthan5SMB.16.WhichofthefollowingcommandsinitializesaphysicaldiskpartitionforusewithLVM?A.lvmcreateB.pvcreateC.vgextendD.pvs17.WhichofthefollowingcommandsinstallsGRUBintotheMBRofthesecondSATAdisk?A.grub2-install/dev/hdb2B.grub2-install/dev/sda2C.grub2-config/dev/sdaD.grub2-install/dev/sdb18.WhichcommandisusedtocreatealogicalvolumewithLVM?A.pvcreateB.lvmcreateC.lvcreateD.volcreate19.WhatisthelogicalorderforcreationofanLVMlogicalvolume?A.Physicalvolumecreation,volumegroupcreation,logicalvolumecreationB.Physicalvolumecreation,logicalvolumecreation,volumegroupcreationC.Logicalvolumecreation,physicalvolumecreation,volumegroupcreationD.LVMcreation,format,partition

Page 20

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 20 preview image

Loading page image...

Chapter1=SystemManagement(Domain1.0)520.Whichcommandshouldberunaftermakingachangetothe/etc/default/grubfile?A.grubB.grub-mkconfigC.grub-instD.reboot21.Whichcommandisusedtochangedetailsofalogicalvolume?A.lvmcreateB.pvcreateC.lvchangeD.lvmscan22.Aharddriveisreportedashd(0,0)bytheGRUBLegacyconfigurationfile.Towhichofthefollowingdisksandpartitionsdoesthiscorrespond?A./dev/hdb2B./dev/hdaoC./dev/disklD./dev/sdal23.WhichofthefollowingcommandsinstallsGRUBintothemasterbootrecord(MBR)ofthefirstSATAdrive?A.grub-install/dev/hdaB.grub-install/dev/sdaC.grub-install/dev/hdo,0D.grub-i/dev/hda24.Whichoptiongiventoayumcommandwillinstallagivenpackage?A.updateB.configureC.installD.get25.Afteranewharddriveisinsertedintothesystem,whatisthecorrectordertomakethedrivereadyforusewithinLinux?A.Usefdisktocreatepartitions,andthenmountthepartitions.B.Mountthepartitions.C.Usefdisktocreatepartitionsandmount-atomountallthenewlycreatedpartitions.D.Usefdisktocreatepartitions,thenformatthepartitionsusingacommandsuchasmkfs,andthenmountthepartitions.

Page 21

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 21 preview image

Loading page image...

6Chapter1=SystemManagement(Domain1.0)26.Whenworkingwithanrpmpackagefileandusingrpm2cpio,bydefaulttheoutputissenttowhichlocation?A.STDOUTB.Thefilecpio.outC.Thefilea.outD.Thefile/tmp/cpi.out27.Whichofthefollowingdescribesaprimarydifferencebetweenext2andext3filesystems?A.ext3wasprimarilyabug-fixupdatetoext2.B.ext3includesjournalingforthefilesystem.C.ext3completelychangedthetoolsneededformanagementofthedisks.D.ext3hasnosignificantdifferences.28.AccordingtotheFilesystemHierarchyStandard(FHS),whatisthecorrectlocationforadd-onapplicationsoftwarepackages?A.JetcB./varCc./tmpD./opt29.Whichoptiontothemountcommandwillmountallfilesystemsthatarecurrentlyavailablein/etc/fstab?A.-fB.-dC.-aD.-m30.Whichoptionofthesystemct1commandwillchangeaservicesothatitrunsonthenextbootofthesystem?A.enableB.startonbootC.loadonbootD.start31.Whichoptiontoxfs_metadumpdisplaysaprogressindicator?A-gB.-pCc.-fD.-v

Page 22

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 22 preview image

Loading page image...

Chapter1=SystemManagement(Domain1.0)732.Thesystemisrunningoutofdiskspacewithinthehomedirectorypartition,andquotashavenotbeenenabled.Whichcommandcanyouusetodeterminethedirectoriesthatmightcon-tainlargefiles?A.duB.dfC.1sD.locate33.Whichfilecontainsinformationaboutthefilesystemstomount,theirpartitions,andtheoptionsthatshouldbeusedtomountthem?A./etc/filesystemsB./etc/mountsC./etc/fstabD.systemd.mount34.AccordingtotheFHS,whatisthepropermountpointforremovablemedia?A.JetcB./srvCc./tmpD./media35.HowmanySCSIdevicesaresupportedperbus?A.7tolsB.2t04Cc.12D.436.Whichoptiontoumountwillcausethecommandtoattempttoremountthefilesysteminread-onlymodeiftheunmountingprocessfails?A.-oB.-rCc.-fD.-v37.Whichofthefollowingrepresentsthecorrectformatforthe/etc/fstabfile?A.<directory><device><type><options>B.<device><type><options>C.<device><type><options><directory><dump><fsck>D.<device><directory><type><options><dump><fsck>

Page 23

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 23 preview image

Loading page image...

8Chapter1=SystemManagement(Domain1.0)38.WhichofthefollowingcommandsisusedtoidentifytheUUIDforpartitions?A.blkidB.partprobeC.findD.cat39.Thexfs_infocommandisfunctionallyequivalenttowhichcommandandoption?A.xfs_test-nB.xfs_listC.tunexfs-iD.xfs_growfs-n40.WhichofthefollowingcommandswillcreateabtrfsfilesystemonthefirstSATAdrive?A.mkfs/dev/sdalB.mkfs.btrfs/dev/sdaC.mkfs.btr2fs/dev/sdalD.mkfs-b/dev/sda41.Whichcommandandoptioncanbeusedtodeterminewhetheragivenserviceiscur-rentlyloaded?A.systemctl--1sB.telinitC.systemctlstatusD.sysctl-a42.Whichcommandcanbeusedtochangethepartitioningschemeforadisk,suchastochangethesizeofexistingpartitionswithoutdeletingthem?A.resize2fsB.partedC.mkfsD.rfdisk43.WhichofthefollowingcommandswillmountaUSBdeviceat/dev/sdb1intothe/mnt/usbdirectory,assumingaVFATfilesystemfortheUSBdrive?A.mount-tvfat/dev/sdbl/mntB.usbmount/dev/sdbl/mnt/usbC.mount-tvfat/dev/sdbl/mnt/usbD.mount-tusb/dev/sdbl/mnt/usb

Page 24

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 24 preview image

Loading page image...

Chapter1=SystemManagement(Domain1.0)944.Whichoptionwithingdskwillchangethepartitionname?AnB.bCvD.c45.Whichcommandonasystemd-controlledsystemwouldplacethesystemintosingle-usermode?A.systemctlstopB.systemctlisolaterescue.targetC.systemctlsingle-userD.systemctlrunlevelone46.Whichoptionstofsckcanbeusedtocheckallfilesystemslistedin/etc/fstabwhileexcludingtherootpartition?A.-NRB.-ARC.XxD.-C47.Whichoptionin/etc/fstabsetstheorderinwhichthedeviceischeckedatboottime?A.optionsB.dumpC.fsckD.checkorder48.WhichfileisusedtoindicatethelocaltimezoneonaLinuxserver?A.Jetc/timezB./etc/timezoneconfigC./etc/timezoneD./etc/localtz49.Withinwhichdirectorywillyoufindfilesrelatedtothetimezoneforvariousregions?A./etc/timezoneinfoB./etc/zoneinfoC./var/zoneinfoD./usr/share/zoneinfo

Page 25

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 25 preview image

Loading page image...

10Chapter1=SystemManagement(Domain1.0)50.Whichoptionbestdescribesthefollowing,gatheredwiththe1s-lacommand?lrwxrwxrwx.1rootroot35Jul82014.fetchmailrc->.configs/fetchmail/.fetchmailrcA.Tltisafilecalled.fetchmailrcthatislinkedusingasymboliclink.B.Itisafilecalled.configs/fetchmail/.fetchmailrcthatisownedbyLrwxrwxrwx.C.Itisadirectorycalled.fetchmailrcthatisownedbyuserJul.D.Itisalocaldirectorycalled.configs/fetchmail/.fetchmailrec.51.Whichenvironmentvariablecontrolstheformatofdatesandtimes,suchasa12-houror24-hourformattedclock?A.LOCALE_DATEB.DATE_FORMATC.LC_TIMED.LC_DATE52.Whichofthefollowingencodingsprovidesamultibyterepresentationofcharacters?A.1SO-8859B.UTF-8C.ISO-LD.UFTMulti53.Whichcommandcanbeusedtoviewtheavailabletimezonesonasystem?A.tzdB./etc/localeC.timedatectlD.tzsel54.Whichoptiontolspciisusedtodisplaybothnumericcodesanddevicenames?A.-numdevB.-nC.-nnD.-devnum55.WhichofthefollowingvaluesfortheLANGvariablewillconfigurethesystemtobypasslocaletranslationswherepossible?A.LANG=COMPATB.LANG=NONEC.LANG=CD.LANG=END

Page 26

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 26 preview image

Loading page image...

Chapter1=SystemManagement(Domain1.0)n56.Ifyouneedtotemporarilyreconfigurealllocalevariablesandsettingsforagivensession,whichenvironmentvariablecanbeused?A.LC_LISTB.LC_GLOBALC.LC_ALLD.ALL_LOCALE57.Whichofthefollowingcommandswillsetthesystemwidetimezoneto'America/Los_Angeles'?A.ln-sf/usr/share/zoneinfo/America/Los_Angeles/etc/localtimeB.ln-sfAmerica/Los_Angeles;/etc/localtimeC.ln-sd/etc/localtime/usr/share/timezone/America/Los_AngelesD.ln-sf/etc/localtime/usr/share/zoneinfo/America/Los_Angeles58.Whichlocale-relatedvariableisusedforcurrency-relatedlocalization?A.LC_MONEB.LC_CURRENCYC.LC_MONETARYD.LC_CURR59.Whichcommandisusedtoqueryandworkwiththehardwareclockonthesystem?A.hwcB.ntpdateC.systimeD.hwclock60.Whichoptiontothedatecommandcanbeusedtosetthedateandtime?A.date-fB.date-tC.date--changeD.date-s61.WhichfunctionofthehwclockcommandwillsetthehardwareorBIOSclocktothecurrentsystemtime?A-wB.-sC.-aD.-m

Page 27

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 27 preview image

Loading page image...

12Chapter1=SystemManagement(Domain1.0)62.WhichofthefollowingcommandssetsthehardwareorBIOSclocktoUTCbasedonthecurrentsystemtime?A.hwclock--systohc--utcB.hwclock--systohc--localtimeC.hwclock--systohcD.hwclock--systoutc63.WhichofthefollowingcommandsshowsthecurrentdefaultroutewithoutperformingDNSlookupsontheIPaddress(es)involved?A.netstat-rnB.netstat-nC.netstat-rD.netstat-f64.ASerialATA(SATA)diskwillusewhichofthefollowingidentifiers?A./dev/hdxB./dev/sataXC./dev/sdxD./disk/sataX65.Whichofthefollowingcommandsaddsadefaultgatewayof192.168.1.1forinterfaceetho?A.routeadddefaultgateway192.168.1.1ethoB.ethe--dg192.168.1.1C.routeadddefaultgw192.168.1.1ethoD.routedefineethe192.168.1.166.Whichoptionforthehostcommandwillqueryfortheauthoritativenameserversforagivendomain?A.-tnsB.-tallC.-nsD.-named67.WhichoptionforthepingcommandenablesyoutochoosetheinterfacefromwhichtheICMPpacketswillbegenerated?A.iB.-IC.-tD.-a

Page 28

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 28 preview image

Loading page image...

Chapter1=SystemManagement(Domain1.0)1368.Whichofthefollowingcommandsqueriesforthemailserversforthedomainexample.com?A.digexample.commxB.digexample.comC.host-tsmtpexample.comD.digexample.comsmtp69.WhichofthefollowingaddressesrepresentsthelocalhostinIPvé,suchasyoumightfindin/etc/hosts?A.0:1B.::1C.127:@:1D.:127:0:0:170.Whichcommandcanbeusedtolistenfornetlinkmessagesonanetwork?A.ipmonitorB.netlink-aC.ipnetlinkD.route71.Whichofthefollowingconfigurationlinesin/etc/nsswitch.confcausesalookupforgroupinformationtofirstuselocalfilesandthenuseLDAP?A.group:filesldapB.lookup:group[localldap]C.group:[localldap]D.group:localfilesldap72.Whichofthefollowingdigcommandssendsthequeryforexample.comdirectlytotheserverat192.168.2.5ratherthantoalocallyconfiguredresolver?A.digexample.com@192.168.2.5B.dig-t192.168.2.5example.comC.dig-s192.168.2.5example.comD.digserver=192.168.2.5example.com73.Whichofthefollowingcommandswillenumeratethehostsdatabase?A.getenthostsB.gethostsC.nslookupD.host

Page 29

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 29 preview image

Loading page image...

14Chapter1=SystemManagement(Domain1.0)74.WhichofthefollowingconfigurationlineswillsettheDNSserverto192.168.1.4using/etc/resolv.conf?A.dns192.168.1.4B.dns-server192.168.1.4C.nameserver192.168.1.4D.name-server192.168.1.475.Whichofthefollowingcommandsaddsaroutetotheserverforthenetwork192.168.51.0/24throughitsgateway192.168.22.12A.routeadd-net192.168.51.0netmask255.255.255.0gw192.168.22.1B.routeadd-net192.168.51/24gw192.168.22.51C.route-net192.168.51.0/24192.168.22.1D.routeadd192.168.51.1-n192.168.22.0//255.255.255.076.Whichofthefollowingcommandsshowsnetworkservicesorsocketsthatarecurrentlylisteningalongwithsocketsthatarenotlistening?A.netstat-aB.netlink-aC.sockets-fD.opensock-177.WhenpartitioningadiskforamailserverrunningPostfix,whichpartition/mounteddirectoryshouldbethelargestinordertoallowformailstorage?A.JetcB./usr/binC./mailD./var78.Whichofthefollowingcommandswillchangethedefaultgatewayto192.168.1.1usingeth?A.iproutedefaultgw192.168.1.1B.iproutechangedefaultvia192.168.1.1deveth®C.iproutedefaultgwupdate192.168.1.1D.iprouteupdatedefault192.168.1.1ethe79.WhichofthefollowingcommandsdisplaystheStartofAuthorityinformationforthedomainexample.com?A.digexample.comsoaB.digexample.comauthorityC.digexample.com-authD.dig-tauthexample.com

Page 30

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 30 preview image

Loading page image...

Chapter1=SystemManagement(Domain1.0)1580.Assumethatyouwanttoenablelocalclientservicestogotohostsonthenetworkwithoutneedingtofullyqualifythenamebyaddingthedomainforeitherexample.comorexampleorg.Whichoptionin/etc/resolv.confwillprovidethisfunctionality?A.searchB.domainC.local-domainD.local-order81.Whichofthefollowingcommandspreventstrafficfromreachingthehost192.168.1.32A.routeadd-host192.168.1.3rejectB.route-nullroute192.168.1.3C.routeadd-null192.168.1.3D.routeadd-block192.168.1.382.WhichofthefollowingcommandswillemulatethepingcommandinMicrosoftWindows,wherethepingissentforfourpacketsandthenthecommandexits?A.ping-n4B.ping-t4C.ping-p4D.ping-c483.Youneedtopreventlocalclientsfromgoingtoacertainhost,www.example.com,andinsteadredirectthemtolocalhost.WhichofthefollowingisamethodtooverrideDNSlookupsforthespecifiedhost?A.AddafirewallentryfortheIPaddressofwww.example.comtopreventtrafficfrompassingthroughit.B.Deletewww.example.comfromtheroutetableusingtheroutecommand.C.AddanullroutetopreventaccesstotheIPaddressforwww.example.com.D.Addanentryforwww.example.comin/etc/hoststopointto127.0.0.1.84.Whichofthefollowingcommandsshouldbeexecutedafterrunningiproutechange?A.iprouteflushcacheB.iproutereloadC.1proutecachereloadD.iprouterestart85.WhichoptionshouldbeusedtosendaDNSqueryforanSPFrecordwithdig?A.-ttxtB.-tspfC.-tmxD.-tmailspf

Page 31

CompTIA Linux+ Practice Tests: Exam XK0-005 (2022) - Page 31 preview image

Loading page image...

16Chapter1=SystemManagement(Domain1.0)86.Whenyou'reviewingtheavailableroutesusingtheroutecommand,oneroutecontainsflagsUGwhiletheotherscontainU.WhatdoestheletterGsignifyintheroutetable?A.TheGsignifiesthattherouteisgood.B.TheGsignifiesthattherouteisunavailable.C.TheGsignifiesthatthisisagateway.D.TheGsignifiesthattherouteisanaggregate.87.Whichofthefollowingcommandsrequestsazonetransferofexample.orgfromtheserverat192.168.1.42A.digexample.org@192.168.1.4axfrB.digexample.org@192.168.1.4C.digexample.org@192.168.1.4xferD.digexample.org#192.168.1.4xfer88.Whichyumoptiondisplaysthedependenciesforthepackagespecified?A.listB.deplistC.dependenciesD.listdeps89.Whichofthefollowingcommandscanbeusedtodisplaythecurrentdiskutilization?A.dfB.duC.diskutilD.diskuse90.YouareworkingwithalegacyCentOS§systemandneedtore-createtheinitialRAMdisk.Whichofthefollowingcommandsisusedforthispurpose?A.mkinitrdB.mkramdiskC.mkdisk--initD.mkfs.init91.Whichofthefollowingcommandsisusedtodisplaythecurrentlyloadedmodulesonarunningsystem?A.1s-modB.lsmodC.treeD.mod--list
Preview Mode

This document has 275 pages. Sign in to access the full document!

Study Now!

XY-Copilot AI
Unlimited Access
Secure Payment
Instant Access
24/7 Support
Document Chat

Document Details

Related Documents

View all