Sie sind auf Seite 1von 22

3/14/2015

117201(v.2)|LinuxQuestions&Answers

LinuxQuestions&Answers
JustanotherAllinOneTestKingSites

Search
Searchfor:

Go Search

Home
Membership
Subscribe
CheckPoint
Cisco
CIW
CompTIA
CWNP
ECCouncil
ISC2
Juniper
Linux
Microsoft
Oracle
Sun
VMWare
EMC
Exin
Isilon
PMI
HP
IBM
ISACA

ExamInformation
RSSfeedforthissection
Thiscategorycontains202posts
Exam117201:LPILevel2Exam201,AdvancedLevelLinuxCertification,Part1of2(updateNovember
19th,2014)

Whichsitespecificconfigurationfilefortheshadowloginsuitemust
bemodifiedtologloginfailures?
PostedbyseenagapeonNovember24,20141comment
Whichsitespecificconfigurationfilefortheshadowloginsuitemustbemodifiedtologlogin
failures?Pleaseenterthecompletepathtothatfile.
Answer:/etc/log.defs

Whatisthelocationofthemainudevconfigurationfile?
PostedbyseenagapeonNovember24,20141comment
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember19

1/22

3/14/2015

117201(v.2)|LinuxQuestions&Answers

Whatisthelocationofthemainudevconfigurationfile?(Specifythefullpathandfilename)
Answer:/etc/udev/udev.conf
Explanation:
Fromthemanpages:
udevLinuxdynamicdevicemanagement
udevexpectsitsmainconfigurationfileat/etc/udev/udev.conf.

whichlogssystemmessagesonLinuxsystems?
PostedbyseenagapeonNovember24,2014Nocomments
Pleaseenterthecompletepathtothemainconfigurationfileforsyslogd,whichlogssystemmessagesonLinux
systems?
Answer:/etc/syslog.conf

whatistheIPaddressoftheclienthost?
PostedbyseenagapeonNovember24,2014Nocomments
Accordingtothetcpdumpoutputbelow,whatistheIPaddressoftheclienthost?
14:17:19.225220IP192.168.1.106.33239>192.168.1.127.22:S4158312222,win
5840,options[mss1460,sackOK,TSval806043ecr0,nop,wscale6]
14:17:19.242943IP192.168.1.127.22>192.168.1.106.33239:S.4013568495ack
4158312223,win5792,options[mss1460,sackOK,TSval565852ecr806043,nop,wscale6]
14:17:19.243111IP192.168.1.106.33239>192.168.1.127.22:.ack1,win92,options[nop,nop,TS
val806045ecr565852]14:17:19.264654IP192.168.1.127.22>192.168.1.106.33239:P.seq1:40,
ack1,win91,options[nop,nop,TSval565856ecr806045]
Answer:192.168.1.106
Explanation:
192.168.1.127.22meansPort22onHost192.168.1.127,whichisthesshserver
Whichleaves192.168.1.106astheclienthost.

WARNING:actualIPmaybedifferentintheLPItest!(192.168.246.11wastheoriginalIPithink)

Whatcommand,withoutoptionsorparameters,shouldberunto
presentthecontentsofthekernelringbuffer?
PostedbyseenagapeonNovember24,2014Nocomments
Youarenotsurewhetherthekernelhasdetectedapieceofhardwareinyourmachine.Whatcommand,without
optionsorparameters,shouldberuntopresentthecontentsofthekernelringbuffer?
Answer:/bin/dmesg
Explanation:
Fromthemanpages:
dmesgprintorcontrolthekernelringbuffer
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember19

2/22

3/14/2015

117201(v.2)|LinuxQuestions&Answers

Whatfileshouldthepathtothelibrariesbeaddedto,beforerunning
ldconfig?
PostedbyseenagapeonNovember24,2014Nocomments
Youhaveinstalledsomenewlibraries,butthesearenotavailabletoprogramsandarenotlistedbyldconfigp.
Whatfileshouldthepathtothelibrariesbeaddedto,beforerunningldconfig?
Answer:/etc/ld.so.conf

WhichdirectorycontainsthePCMCIAconfigurationfiles?
PostedbyseenagapeonNovember24,2014Nocomments
WhichdirectorycontainsthePCMCIAconfigurationfiles?
Answer:/etc/pcmcia
Explanation:
SeeSeehttp://linuxmafia.com/pub/linux/suselinuxinternals/chapter2.html#Tab25

whichdirectoryistheLinuxkerneldocumentationbefound?
PostedbyseenagapeonNovember24,2014Nocomments
InwhichdirectoryistheLinuxkerneldocumentationbefound?
Answer:/usr/src/linux/Documentation
Explanation:
Seehttp://tldp.org/LDP/LinuxFilesystemHierarchy/html/usr.html
/usr/src/linux/DocumentationContainsdocumentationthatmaybenecessaryinordertorecompile
akernel.However,italsoprovidesquitealotofinformationaboutyourLinuxsystemingeneralas
well.Forthosewhowishtoseekfurtherinformationonthecontentsofthisdirectoryyoumay
consultthe/usr/src/linux/Documentation/00INDEXfile.Further,moredetaileddocumentation
maybefoundin/usr/src/linux/Documentation/Docbook.

whatistheemailaddressoftheadministratorforthisdomain?
PostedbyseenagapeonNovember24,2014Nocomments
Accordingtotheconfigurationbelow,whatistheemailaddressoftheadministratorforthis
domain?
$TTL86400
$ORIGINlpi.org
@INSOAtest.lpi.orghostmaster.lpi.org(
2005010101
10800
3600
604800
86400)
Answer:hostmaster@lpi.org
Explanation:
Seehttp://tools.ietf.org/html/rfc1035#page18
ThefieldinquestionisRNAME.
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember19

3/22

3/14/2015

117201(v.2)|LinuxQuestions&Answers

Whichenvironmentvariableyouhavetosetuptousesharedlibraries
thatarenotinthestandardsearchpath?
PostedbyseenagapeonNovember24,2014Nocomments
Whichenvironmentvariableyouhavetosetuptousesharedlibrariesthatarenotinthestandardsearchpath?
Answer:LD_LIBRARY_PATH
Explanation:
Seehttp://tldp.org/HOWTO/ProgramLibraryHOWTO/sharedlibraries.html
Youcantemporarilysubstituteadifferentlibraryforthisparticularexecution.InLinux,the
environmentvariableLD_LIBRARY_PATHisacolonseparatedsetofdirectorieswherelibraries
shouldbesearchedforfirst,beforethestandardsetofdirectoriesthisisusefulwhendebugginga
newlibraryorusinganonstandardlibraryforspecialpurposes

whichareconnectedandrecognizedbya2.6kernelstored?
PostedbyseenagapeonNovember24,2014Nocomments
Inwhichsubdirectoryof/procisinformationaboutPCCards,whichareconnectedandrecognized
bya2.6kernelstored?Pleaseenterthecompletepath.
Answer:/proc/bus/pccard
Explanation:
SeeSeehttp://tldp.org/HOWTO/PCMCIAHOWTO7.html
On2.2andlaterkernels,thePCMCIApackagewillcreateatreeofstatusinformationunder
/proc/bus/pccard.Muchoftheinformationcanonlybeinterpretedusingthedatasheetsforthe
PCMCIAhostcontroller.
Itscontentsmaydependonhowthedriverswereconfigured,butmayincludeallorsomeofthe
following:
/proc/bus/pccard/{irq,ioport,memory}Ifpresent,thesefilescontainresourceallocationinformation
tosupplementthenormalkernelresourcetables.RecentversionsofthePCMCIAsystemmay
obtainadditionalresourceinformationfromthePlugandPlayBIOSifconfiguredtodoso.
/proc/bus/pccard/driversInrecentreleases,thislistsallcurrentlyloadedPCMCIAclientdrivers.
Unlike/proc/modules,italsolistsdriversthatmaybestaticallylinkedintothekernel.
/proc/bus/pccard/*/infoForeachsocket,describesthatsocketshostcontrolleranditscapabilities.
/proc/bus/pccard/*/excaThiscontainsadumpofacontrollersExCAInteli82365slcompatible
registerset.
/proc/bus/pccard/*/{pci,cardbus}ForCardBusbridges,adumpofthebridgesPCIconfiguration
space,andadumpofthebridgesCardBusconfigurationregisters.

Pleaseenterthecompletepathtothemaininitprocessconfiguration
file.
PostedbyseenagapeonNovember24,2014Nocomments
Pleaseenterthecompletepathtothemaininitprocessconfigurationfile.
Answer:/etc/inittab
Explanation:
fromthemanpages:
inittabinitdaemonconfigurationin/etc/inittab

http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember19

4/22

3/14/2015

117201(v.2)|LinuxQuestions&Answers

Typethefullpathandfilenametowhichthisislinked.
PostedbyseenagapeonNovember24,2014Nocomments
WhenusingSysVinitsystem,thefile/etc/rc3.d/S55sshdisasymboliclink.Typethefullpathandfilenameto
whichthisislinked.
Answer:/etc/init.d/sshd
Explanation:
Seehttp://www.debian.org/doc/debianpolicy/chopersys.html
The/etc/init.ddirectorycontainsthescriptsexecutedbyinitatboottimeandwhentheinitstate(or
runlevel)ischanged(seeinit(8)).[...]Thesescriptsarereferencedbysymboliclinksinthe
/etc/rcn.ddirectories.Whenchangingrunlevels,initlooksinthedirectory/etc/rcn.dforthescripts
itshouldexecute,wherenistherunlevelthatisbeingchangedto,orSforthebootupscripts.

whichofthefollowingconfigurationfilesshouldthisbedone?
PostedbyseenagapeonNovember24,2014Nocomments
ConfigurationofXiscompleteandnowthedefaultrunlevelcanbechangedfromrunlevel3to
runlevel5.Inwhichofthefollowingconfigurationfilesshouldthisbedone?
Answer:/etc/inittab

Whichfilecontainsconfigurationdataforautomount?
PostedbyseenagapeonNovember24,2014Nocomments
Whichfilecontainsconfigurationdataforautomount?Pleaseenterthecompletepath.
Answer:/etc/auto.master

Whichconfigurationfileshouldbemodified,tosetthiskernel
parameterpermanently?
PostedbyseenagapeonNovember24,20143comments
Adatabaseapplicationrequiresamaximumsharedmemorysegment(shmmax)of2GB(2147483648Bytes).
Whichconfigurationfileshouldbemodified,tosetthiskernelparameterpermanently?Pleaseenterthe
completepathtothefile.

WhatistheminimumnumberofdisksrequiredinaRAID5array?
PostedbyseenagapeonNovember21,2014Nocomments
WhatistheminimumnumberofdisksrequiredinaRAID5array?
A.
1
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember19 5/22

3/14/2015

117201(v.2)|LinuxQuestions&Answers

B.
2
C.
3
D.
4
E.
5
Explanation:
Seehttp://en.wikipedia.org/wiki/RAID
RAID5:Blocklevelstripingwithdistributedparity.Minimum3disks.

Thebestconfigurationforthisserver,withthecriteriabeing
performance,configurabilityandflexibility,is:
PostedbyseenagapeonNovember21,2014Nocomments
Aserverhasthreedisksof80GBeachandmustmanageadatabasewith4millionrecordsof30KB
each.Thebestconfigurationforthisserver,withthecriteriabeingperformance,configurabilityand
flexibility,is:
A.
UsejustLVM
B.
UseRAID1overLVM
C.
UseLVMoverRAID5
D.
UseLVMoverRAID1
E.
UseRAID5overLVM
Explanation:
RAID1wouldnotbeperformanceenhancing(Mirroring),aswouldthedefaultLVM(linear).So
usea
RAID5forredundancyandperformanceanduseLVMforaddedconfigurabilityandflexibility
AstripedLVMonlywouldworktoo,Iguess,ifyouneednoredundancyatall.

ThecorrectcommandsequencetocreatelogicalvolumesonaLinux
systemis:
PostedbyseenagapeonNovember21,2014Nocomments
ThecorrectcommandsequencetocreatelogicalvolumesonaLinuxsystemis:
A.
lvcreate,pvcreate,vgcreate,mount,mke2fs
B.
pvcreate,vgcreate,lvcreate,mke2fs,mount
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember19

6/22

3/14/2015

117201(v.2)|LinuxQuestions&Answers

C.
vgcreate,lvcreate,pvcreate,mount,mke2fs
D.
mke2fs,pvcreate,vgcreate,lvcreate,mount
E.
pvcreate,lvcreate,vgcreate,mount,mke2fs
Explanation:
Seehttp://www.tldp.org/HOWTO/LVMHOWTO/anatomy.html
YouneedtocreatethePhysicalVolumesfirst,thentheVolumeGroup(consistingofPVs),thenthe
LogicalVolumes,whichyouneedtoformatandmount.

WhatistheusablediskspaceofaRAID5arrayoffive18GBdrives
withonedrivededicatedasaspare?
PostedbyseenagapeonNovember21,2014Nocomments
WhatistheusablediskspaceofaRAID5arrayoffive18GBdriveswithonedrivededicatedasa
spare?
A.
18GB
B.
36GB
C.
54GB
D.
72GB
E.
90GB
Explanation:
Seehttp://en.wikipedia.org/wiki/RAID
RAID5capacityisavailabledisks1.5disks11spare=3disks.3x18=54

howwouldyoucreatea10GBlogicalvolumecalledbigapp?
PostedbyseenagapeonNovember21,2014Nocomments
Youdecidetousethelogicalvolumemanager(LVM)tomanagefour4GBdiskdrives.Aftercreating
thevolumegroup,howwouldyoucreatea10GBlogicalvolumecalledbigapp?
A.
vgcreatep10gn/dev/vg01/bigapp
B.
vgcreatel2560/dev/vg01/bigapp
C.
mklvmv10240n/dev/vg01/bigapp
D.
lvcreatev10240/dev/vg01/bigapp
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember19

7/22

3/14/2015

117201(v.2)|LinuxQuestions&Answers

E.
lvcreatel2560vg01nbigapp
Explanation:
Fromthemanpages:
lvcreatecreatealogicalvolumeinanexistingvolumegroup
l,extentsLogicalExtentsNumber[%{VG|PVS|FREE}]
Givesthenumberoflogicalextentstoallocateforthenewlogicalvolume.Thiscanalsobe
expressedasapercentageofthetotalspaceintheVolumeGroupwiththesuffix%VG,ofthe
remainingfreespaceintheVolumeGroupwiththesuffix%FREE,oroftheremainingfreespace
for
thespecifiedPhysicalVolume(s)withthesuffix%PVS
n,nameLogicalVolumeNameThenameforthenewlogicalvolume.Withoutthisoptiona
default
namesoflvol#willbegeneratedwhere#istheLVMinternalnumberofthelogicalvolume.

Whatisthepurposeofvgextend?
PostedbyseenagapeonNovember21,2014Nocomments
Whatisthepurposeofvgextend?
A.
Extendavolumegroupsfootprintondisk
B.
Addphysicalvolumestoavolumegroup
C.
Increasethenumberofdaysbetweenschedulederrorchecking
D.
Createavolumegroupwhichusesallavailablespaceondisk
Explanation:
Fromthemanpages:
vgextendaddphysicalvolumestoavolumegroup

WhichRAIDlevelprovidesthemostredundancy?
PostedbyseenagapeonNovember21,2014Nocomments
WhichRAIDlevelprovidesthemostredundancy?
A.
RAID4
B.
RAID5
C.
RAID1
D.
RAID0
Explanation:
Seehttp://en.wikipedia.org/wiki/RAID
a,b)only1diskmayfail,regardlesshowmanydisksareintheRAID
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember19

8/22

3/14/2015

117201(v.2)|LinuxQuestions&Answers

d)nodiskmayfail
c)n1disksmayfail

Whichpseudofilecontainsinformationonthestatusofsoftware
RAIDdevices?
PostedbyseenagapeonNovember21,2014Nocomments
WhichpseudofilecontainsinformationonthestatusofsoftwareRAIDdevices?
A.
/proc/raidstat
B.
/proc/mdstatus
C.
/proc/raidstatus
D.
/proc/mdstat
E.
/proc/raid/status
Explanation:
Fromthemanpages:
/proc/mdstatIfyoureusingthe/procfilesystem,/proc/mdstatlistsallactivemddeviceswith
informationaboutthem.mdadmusesthistofindarrayswhenscanisgiveninMiscmode,andto
monitorarrayreconstructiononMonitormode.

Whatinformationdoesthefilemodules.depprovide?
PostedbyseenagapeonNovember21,2014Nocomments
Whatinformationdoesthefilemodules.depprovide?
A.
Alistofallmodulesavailabletothekernel.
B.
Alistofmodulesrequiredbyeachmodule.
C.
Alistofdevicesandtheirmodulename.
D.
Alistofmodulescompiledforthiskernel.
E.
Alistofmodulesthekernelneedstorun.
Explanation:
Fromthemanpages:
Themodules.dep.binasgeneratedbymoduleinittoolsdepmod,liststhedependenciesforevery
moduleinthedirectoriesunder/lib/modules/version,wheremodules.dep.bin(orthehuman
readableversionmodules.
dep)isalsolocated.Itisusedbyutilitiessuchasmodprobe.Thebinaryversionwillbeusedby
default,ifitwasgeneratedbyacompatibleversionofdepmod,withfallbacktothegeneric
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember19

9/22

3/14/2015

117201(v.2)|LinuxQuestions&Answers

modules.dep.
Thesefilesarenotintendedforeditingorusebyanyadditionalutilitiesastheirformatissubjectto
changeinthefuture.Youshouldusethemodinfo(8)commandtoobtaininformationabout
modules
inafutureproofandcompatiblefashionratherthantouchingthesefiles.

whatneedstobedone?
PostedbyseenagapeonNovember21,2014Nocomments
Beforecompilinganewkernel,whatneedstobedone?
A.
Compilekernelmodules
B.
Configurethekerneloptions
C.
Deleteoldkernelsources
D.
Changetorunlevel1
E.
Alloftheabove
Explanation:
Seehttp://www.faqs.org/docs/LinuxHOWTO/KernelHOWTO.html#impatient

whichfilesystem[s]cansafelybemountedreadonly?
PostedbyseenagapeonNovember21,2014Nocomments
Onasystemwithseparatepartitionsfor/,/usr,/var,/tmp,whichfilesystem[s]cansafelybe
mountedreadonly?
A.
/var,/usr
B.
/var
C.
/usr,/,/tmp
D.
/usr
E.
/tmp
Explanation:
/tmpand/varbothneedtobewrittento./usristhemoststaticofthedirectories(excluding
/usr/local)

Whichofthefollowingbestdescribestheformatofthe/etc/fstabfile?
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember1

10/22

3/14/2015

117201(v.2)|LinuxQuestions&Answers

PostedbyseenagapeonNovember21,2014Nocomments
Whichofthefollowingbestdescribestheformatofthe/etc/fstabfile?
A.
mountpointdevicenamefilesystemtypemountoptionsdumpfilesystemfsckorder
B.
devicenamemountpointfilesystemtypemountoptionsdumpfilesystemfsckorder
C.
mountpointfilesystemtypedevicenamemountoptionsdumpfilesystemfsckorder
D.
devicenamemountpointmountoptionsfilesystemtypedumpfilessystemfsckorder
E.
devicenamefilesystemtypemountpointmountoptionsdumpfilesystemfsckorder
Explanation:
Fromthemanpages:
Thefirstfield,(fs_spec),describestheblockspecialdeviceorremotefilesystemtobemounted.
Thesecondfield,(fs_file),describesthemountpointforthefilesystem.Forswappartitions,this
field
shouldbespecifiedas`none.
Thethirdfield,(fs_vfstype),describesthetypeofthefilesystem.
Thefourthfield,(fs_mntops),describesthemountoptionsassociatedwiththefilesystem.
Thefifthfield,(fs_freq),isusedforthesefilesystemsbythedump(8)commandtodeterminewhich
filesystemsneedtobedumped.
Thesixthfield,(fs_passno),isusedbythefsck(8)programtodeterminetheorderinwhich
filesystemchecksaredoneatreboottime.

Whichofthefollowingisavalidlocationintheautomount
configuration,whenaWindowsshareneedstobemadeavailableto
thesystem?
PostedbyseenagapeonNovember21,2014Nocomments
Whichofthefollowingisavalidlocationintheautomountconfiguration,whenaWindowsshare
needstobemadeavailabletothesystem?
A.
\\server\sharename
B.
://server/sharename
C.
server:/sharename
D.
:server/sharename
E.
\\\\server\\sharename
Explanation:
Fromthemanpages:
EXAMPLE
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember1

11/22

3/14/2015

117201(v.2)|LinuxQuestions&Answers

kernelro,soft,intrftp.kernel.org:/pub/linux
bootfstype=ext2:/dev/hda1
windozefstype=smbfs://windoze/c
removablefstype=ext2:/dev/hdd
cdfstype=iso9660,ro:/dev/hdc
floppyfstype=auto:/dev/fd0
serverrw,hard,intr/romyserver.me.org:/\
/usrmyserver.me.org:/usr\
/homemyserver.me.org:/home
InthefirstlinewehaveaNFSremotemountofthekerneldirectoryonftp.kernel.org.Thisis
mountedreadonly.
Thesecondlinemountsanext2volumeonalocalidedrive.Thethirdmakesashareexportedfrom
a
Windowsmachineavailableforautomounting.Therestshouldbefairlyselfexplanatory.Thelast
entry(thelastthreelines)isanexampleofamultimap(seebelow).

Whatscriptisincludedwiththekernelsourcetopatchakernel?
PostedbyseenagapeonNovember21,2014Nocomments
Whatscriptisincludedwiththekernelsourcetopatchakernel?
A.
patch
B.
patchkernel
C.
applypatch
D.
updatekernel
Explanation:
See
http://book.opensourceproject.org.cn/distrib/ubuntu/unleashed/opensource/0672329093/ch35lev
1sec6.html
ItispossibletopatchakerneltothenewestLinuxkernelversionasopposedtodownloadingthe
entiresourcecode.Thischoicecanbebeneficialforthosewhoarenotusingahighspeed
broadbandconnection.(Atypicalcompressedkernelsourcefileisnearly30MBforadownload
time
ofabout10minutesona512KbDSLconnectionadjustaccordinglyforyourconnection.)Whether
youarepatchingexistingsourcesordownloadingthefullsource,theendresultswillbeidentical.
Patchingthekernelisnotamindlesstask.Itrequirestheusertoretrieveallpatchesfromher
currentversiontotheversionshewantstoupgradeto.Forexample,ifyouarecurrentlyrunning
2.6.1(andhavethosesources)andwanttoupgradeto2.6.8,youmustretrievethe2.6.2and2.6.3
patchsets,andsoon.Oncedownloaded,thesepatchesmustbeappliedinsuccessiontoupgradeto
2.6.8.Thisismoretediousthandownloadingtheentiresource,butusefulforthosewhokeepup
withkernelhackingandwanttoperformincrementalupgradestokeeptheirLinuxkernelasup
todateaspossible.
Topatchuptoseveralversionsinasingleoperation,youcanusethepatchkernelscriptlocatedin
thekernelsourcedirectoryforthekernelversionyoucurrentlyuse.Thisscriptappliesallnecessary
versionpatchestobringyourkerneluptothelatestversion.
Theformatforusingthepatchkernelscriptlookslikethis:
patchkernelsource_dirpatch_dirstopversion

http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember1

12/22

3/14/2015

117201(v.2)|LinuxQuestions&Answers

Whichcommandwouldyouusetoapplyadifffiletoanoriginal?
PostedbyseenagapeonNovember21,2014Nocomments
Whichcommandwouldyouusetoapplyadifffiletoanoriginal?
A.
patch>difffile
B.
patch<difffile
C.
patch<<difffile
D.
catdifffile>>kernel
E.
catdifffile<<kernel
Explanation:
Fromthemanpages:
SYNOPSIS
patch[options][originalfile[patchfile]]
butusuallyjust
patchpnum<patchfile

WhatcommandmustberuntoenableDMAonit?
PostedbyseenagapeonNovember21,2014Nocomments
OneoftheIDEharddrivesinaserveristransferringdataveryslowly.Whatcommandmustberun
toenableDMAonit?
A.
hdparmd/dev/hda
B.
hdparmdma/dev/hda
C.
hdparmdma/dev/hda1
D.
hdparmd/dev/hda1
E.
hdparmd1/dev/hda
Explanation:
hdparmprovidesacommandlineinterfacetovariouskernelinterfacessupportedbytheLinux
SATA/PATA/SASlibatasubsystemandtheolderIDEriversubsystem.Manynewer(2008and
later)
USBdriveenclosuresnowalsosupportSAT(SCSIATACommandTranslation)andtherefore
may
alsoworkwithhdparm.Eg.recentWDPassportmodelsandrecentNexStar3enclosures.Some
optionsmayworkcorrectlyonlywiththelatestkernels.
dDisable/enabletheusing_dmaflagforthisdrive.Thisoptionnowworkswithmost
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember1

13/22

3/14/2015

117201(v.2)|LinuxQuestions&Answers

combinations
ofdrivesandPCIinterfaceswhichsupportDMAandwhichareknowntothekernelIDEdriver.It
is
alsoagoodideatousetheappropriateXoptionincombinationwithd1toensurethatthedrive
itselfisprogrammedforthecorrectDMAmode,althoughmostBIOSsshoulddothisforyouat
boot
time.UsingDMAnearlyalwaysgivesthebestperformance,withfastI/OthroughputandlowCPU
usage.

WhathappenswhentheLinuxkernelcantmounttherootfilesystem
whenbooting?
PostedbyseenagapeonNovember21,2014Nocomments
WhathappenswhentheLinuxkernelcantmounttherootfilesystemwhenbooting?
A.
Anerrormessageisshown,showingwhichdevicecouldntbemountedorinformingthatinit
couldntbefound.
B.
Anerrormessageisshownandthesystemrebootsafterakeypress.
C.
Anerrormessageisshownandthesystembootsinmaintenancemode.
D.
Anerrormessageisshownandtheadministratorisaskedtospecifyavalidrootfilesystemto
continuethebootprocess.
E.
Anerrormessageisshown,statingthatthecorrespondingkernelmodulecouldntbeloaded.

howcanthisbestbeachieved?
PostedbyseenagapeonNovember21,2014Nocomments
Youhavewrittenalittlestartupscript(/usr/local/bin/startup.sh)thatshouldautomaticallyexecute
whenenteringrunlevel3.Accordingtothestandards,howcanthisbestbeachieved?
A.
chmod700/usr/local/bin/startup.shcd/etc/init.d/rc3.d/lns/user/local/bin/startup.sh
B.
chmod700/usr/local/bin/startup.shcd/etc/init.d/rc3.d/lns/usr/local/bin/startup.sh
S99startup.sh
C.
chmod700/usr/local/bin/startup.shcd/etc/init.d/rc3.d/ln/user/local/bin/startup.sh
D.
chmod700/usr/local/bin/startup.shcd/etc/init.d/rc3.d/lns/user/local/bin/startup.sh
/usr/locl/bin/startup.sh
E.
chmod700/usr/local/bin/startup.shcp/user/local/bin/startup.sh/etc/init.d/rc3.d/S99Startup.sh
Explanation:
Seehttp://www.linuxtutorial.info/modules.php?name=ManPage&sec=7&manpage=init.d
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember1

14/22

3/14/2015

117201(v.2)|LinuxQuestions&Answers

WhatcommandisusedtocreateanISO9660filesystemthatcanbe
properlyaccessedfromaWindows95/98machine?
PostedbyseenagapeonNovember21,2014Nocomments
WhatcommandisusedtocreateanISO9660filesystemthatcanbeproperlyaccessedfroma
Windows95/98machine?
A.
mkisofslobackup.iso/home/joe
B.
mkisofsJTrobackup.iso/home/joe
C.
mkisofsDTobackup.iso/home/joe
D.
mkisofsjTobackup.iso/home/joe
E.
mkisofsdTobackup.iso/home/joe
Explanation:
seehttp://linux.about.com/library/cmd/blcmdl8_mkisofs.htm
JGenerateJolietdirectoryrecordsinadditiontoregulariso9660filenames.Thisisprimarily
useful
whenthediscsaretobeusedonWindowsNTorWindows95machines.
TGenerateafileTRANS.TBLineachdirectoryontheCDROM,whichcanbeusedonnonRock
Ridge
capablesystemstohelpestablishthecorrectfilenames.
ofilenameisthenameofthefiletowhichtheiso9660filesystemimageshouldbewritten.
actuallyyoucanleavetheroption,sinceyouwouldntneedRock
Ridge
onaWindowsMachine.

whichofthefollowingstatementistrue?
PostedbyseenagapeonNovember21,2014Nocomments
Inordertofindalllibrarydependenciesof/usr/bin/foo,whichofthefollowingstatementistrue?
A.
Runningldconfigagainst/usr/bin/foowillshowtherequiredlibraries
B.
Runninglddagainst/usr/bin/foowillshowtherequiredlibraries
C.
Itsnecessarytocompiletheprogramagaintocheckthelibrarydependenciesoffoo.
D.
Thelslacommandhastoberuninthe/usr/bindirectory,toshowalllibrarydependenciesof
foo.
E.
Librarydependenciesareshowninthe/usr/libdirectory.
Explanation:
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember1

15/22

3/14/2015

117201(v.2)|LinuxQuestions&Answers

Fromthemanpages:
lddprintsthesharedlibrariesrequiredbyeachprogramorsharedlibraryspecifiedonthecommand
line.

Whichofthefollowingisthecorrectmethodtoconfigurethis?
PostedbyseenagapeonNovember21,2014Nocomments
Theuserquotasontheserverwerereducedfrom200MBto100MB.Besidessendingemailstoall
users,itwasrequestedthatamessageshouldcommunicatethechangeeverytimeauseraccessthe
server.Whichofthefollowingisthecorrectmethodtoconfigurethis?
A.
Putthemessagetextinthe/etc/loginmessagefile
B.
Putthemessagetextinthe/etc/motdfile
C.
Putthemessagetextinthe/etc/default/loginfile.
D.
Putthemessagetextinthe/etc/passwdfile,afterallusersentries.
E.
Thereisnowaytodothisbecausetheadministratorhasnopermissiontochangethe
.bash_profilefileforeachuser.
Explanation:
Fromthemanpages
Thecontentsof/etc/motdaredisplayedbylogin(1)afterasuccessfulloginbutjustbeforeit
executestheloginshell.

ThismessageofcourseisnotshownonGUIs!

howcanthelostGRUBfirststageloaderberecovered?
PostedbyseenagapeonNovember21,2014Nocomments
AGRUBbootloaderinstalledintheMBRwasaccidentallyoverwritten.Afterbootingwitharescue
CDROM,howcanthelostGRUBfirststageloaderberecovered?
A.
UseddtorestoreapreviousbackupoftheMBR
B.
InstallLILOsincethereisnoeasywaytorecoverGRUB
C.
RunningmformatwillcreateanewMBRandfixGRUBusinginfofromgrub.conf
D.
Rungrubinstallafterverifyingthatgrub.confiscorrect.
E.
Runfdiskmbr/dev/hadassumingthatthebootharddiskis/dev/hda.
Explanation:
Fromthemanpages:
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember1

16/22

3/14/2015

117201(v.2)|LinuxQuestions&Answers

GrubinstallcopiesGRUBimagesinto/boot/grub(or/grubonNetBSDandOpenBSD),anduses
grubsetuptoinstallgrubintothebootsector.

Whyistherootfilesystemmountedreadonlyduringbootand
remountedwithwritepermissionlateron?
PostedbyseenagapeonNovember21,2014Nocomments
Whyistherootfilesystemmountedreadonlyduringbootandremountedwithwritepermission
lateron?
A.
Becauseifproblemswiththerootfilesystemaredetectedduringtheboot,fsckcanberun,
withoutriskofdamage.
B.
Becausethiswaycrackerscannotcollectinformationaboutrootwithbootsniffers
C.
Toavoidwritingtothedisk,unlesstherootpasswordisknown.
D.
ToavoidotheroperatingsystemsoverwritingtheLinuxrootpartition
E.
Becausethediskhasitsownwriteprotectionthatcannotchangebytheoperatingsystem.

WhicharetheTWOpossiblecausesforthisproblem?
PostedbyseenagapeonNovember21,2014Nocomments
FollowingtheinstructionscontainedintheREADMEfileofanapplication,themakecommandwas
executedbutthefollowingmessagewasdisplayedonthescreen:
Make:***Notargetsspecifiedandnomakefilefound.Stop.
WhicharetheTWOpossiblecausesforthisproblem?
A.
Themakecommandisbeingexecutedinthewronglocation.
B.
TheuserhasnowritepermissiontotheMakefile,sohecannotexecutethemakecommand
correctly.
C.
ThemakecommandwasexecutedintherightplacebutthecommandtogeneratetheMakefile
wasnotproperlyexecuted.
D.
Themakecommandisnotinstalledinthesystem.
E.
Thedevelopmentlibrariesneededbymakearenotinstalledonthesystem.

whichTWOwayscanthisbechangedto2GB(2147483648Bytes)on
arunningsystem?
PostedbyseenagapeonNovember21,2014Nocomments
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember1

17/22

3/14/2015

117201(v.2)|LinuxQuestions&Answers

Itispossibletoconfigurekernelparametersatruntime(e.g.themaximumsizeoftheshared
memorysegment(shmmax)).InwhichTWOwayscanthisbechangedto2GB(2147483648Bytes)
onarunningsystem?
A.
Edit/etc/shmmaxandsettheparameterto2147483648.
B.
sysctlshmmax=2147483648.
C.
sysctlkernel.shmmax=2147483648
D.
echo2147483648>/proc/sys/kernel/shmmax
E.
exportkernel.shmmax=2147483648

Selectthecorrectalternativebelowthatshowsthethreetar
parametersthatcreate,listandexpandatarfilerespectively
PostedbyseenagapeonNovember21,2014Nocomments
Tomakeasystembackup,thesimplestandfastestwayistousethetarcommand.Selectthecorrect
alternativebelowthatshowsthethreetarparametersthatcreate,listandexpandatarfile
respectively.
A.
createlistextract
B.
composelistexpand
C.
cte
D.
clx
Explanation:
Fromthemanpages:
c,createcreateanewarchive
t,listlistthecontentsofanarchive
x,extract,getextractfilesfromanarchive

whichcommandlinemustbepassedtothekernelfortheboot
process?
PostedbyseenagapeonNovember21,2014Nocomments
ALinuxmachinefreezesduringboot.Tobootdirectlytoashellpromptsothateditingoffilesand
manualstartingofservicesispossiblewhichcommandlinemustbepassedtothekernelforthe
bootprocess?
A.
init=/bin/bash
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember1

18/22

3/14/2015

117201(v.2)|LinuxQuestions&Answers

B.
1
C.
runlevel=1
D.
sh
E.
/bin/sh
Explanation:
Seehttp://en.wikipedia.org/wiki/Init#Skipping_init
InLinuxsystems,withmostmodernbootloaders(suchasLILOorGRUB),userscanchange
which
processthekernelspawnsattheendofitsinitializationfromthenormaldefaultof/sbin/init.Thisis
generallydonebytypinginit=/foo/baratthebootloadersprompt.Appendinginit=/bin/bash,for
example,willbringupasinglerootshell,withoutapassword.

WhichONEofthefollowingwirelesstoolscanbeusedtocheckthe
wirelessnetworklinkquality?
PostedbyseenagapeonNovember21,2014Nocomments
WhichONEofthefollowingwirelesstoolscanbeusedtocheckthewirelessnetworklinkquality?
A.
iwconfig
B.
iwlink
C.
iwscan
D.
iwifi
Explanation:
Seehttp://en.wikipedia.org/wiki/Wireless_tools_for_Linux

Whatneedstobedoneontheclienttoenableittousetherouterasits
defaultgateway?
PostedbyseenagapeonNovember21,2014Nocomments
AnetworkclienthasanethernetinterfaceconfiguredwithanIPaddressinthesubnet
192.168.0.0/24.Thissubnethasarouter,withtheIPaddress192.168.0.1,thatconnectsthissubnet
totheInternet.Whatneedstobedoneontheclienttoenableittousetherouterasitsdefault
gateway?
A.
Runrouteadddefaultgw192.168.0.1eth1.
B.
Runrouteaddgw192.168.0.1eth1.
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember1

19/22

3/14/2015

117201(v.2)|LinuxQuestions&Answers

C.
Runifconfigeth0defaultroute192.168.0.1.
D.
Adddefaultroute192.168.0.1to/etc/resolv.conf.
E.
Runrouteadddefaultgw=192.168.0.1if=eth0.
Explanation:
Fromthemanpages:
routeadddefaultgwmangogwaddsadefaultroute(whichwillbeusedifnootherroutematches).
Allpacketsusingthisroutewillbe
gatewayedthroughmangogw.Thedevicewhichwillactuallybeusedforthatroutedependson
howwecanreachmangogwthestaticroutetomangogwwillhavetobesetupbefore.

WhatisthecommandtoaddanotherIPaddresstoaninterfacethat
alreadyhas(atleast)oneIPaddress?
PostedbyseenagapeonNovember21,2014Nocomments
WhatisthecommandtoaddanotherIPaddresstoaninterfacethatalreadyhas(atleast)oneIP
address?
A.
ifconfigeth0:1192.168.1.2
B.
ifconfigeth0192.168.1.2
C.
ipconfigeth0:1192.168.1.2
D.
ipconfigeth0192.168.1.2
E.
ifconfigeth0:sub1192.168.1.2
Explanation:
Fromthemanpages:
ifconfigconfigureanetworkinterface
Theinterfaceisusuallyadrivernamefollowedbyaunitnumber,forexampleeth0forthefirst
Ethernetinterface.Ifyourkernelsupportsaliasinterfaces,youcanspecifythemwitheth0:0forthe
firstaliasofeth0.
Youcanusethemtoassignasecondaddress.

WhichofthesetoolscanprovidethemostinformationaboutDNS
queries?
PostedbyseenagapeonNovember21,2014Nocomments
WhichofthesetoolscanprovidethemostinformationaboutDNSqueries?
A.
dig
B.
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember1

20/22

3/14/2015

117201(v.2)|LinuxQuestions&Answers

nslookup
C.
host
D.
namedcheckconf
E.
namedcheckzone
Explanation:
digDNSlookuputility
nslookupqueryInternetnameserversinteractively
HostDNSlookuputility
Namedcheckconfnamedconfigurationfilesyntaxcheckingtool
Namedcheckzonezonefilevaliditycheckingtool

Whatcommandmustbeusedtocreateanext3filesystem?
PostedbyseenagapeonNovember21,2014Nocomments
Whatcommandmustbeusedtocreateanext3filesystem?
A.
mkext3fs
B.
mkjfs
C.
mke3fs
D.
mke2fs
E.
mkext2fs
Explanation:
Also:mkfstext3ormkfs.ext3ifyoucallmke2fsyouactuallyneedoptionJtoenablejournalling
otherwiseext2willbeused.

Whatneedstobedonetoenable32bitI/Otransfermodefor(E)IDE
disks,onasystemrunninga2.4seriesLinuxkernel?
PostedbyseenagapeonNovember21,2014Nocomments
Whatneedstobedonetoenable32bitI/Otransfermodefor(E)IDEdisks,onasystemrunninga2.4
seriesLinuxkernel?
A.
TheLinuxkernelmustberecompiled.
B.
Thesysctlutilitymustbeused.
C.
Thehdparmutilitymustbeused.
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember1

21/22

3/14/2015

117201(v.2)|LinuxQuestions&Answers

D.
Thisfeatureisntsupportedin2.4serieskernels.
E.
Thisfeatureisenabledbydefaultin2.4serieskernels
Explanation:
hdparmprovidesacommandlineinterfacetovariousharddiskioctlssupportedbythestockLinux
ATA/IDEdevicedriversubsystem.Someoptionsmayworkcorrectlyonlywiththelatestkernels.
cQuery/enable(E)IDE32bitI/Osupport.Anumericparametercanbeusedtoenable/disable32
bit
I/Osupport:Currentlysupportedvaluesinclude0todisable32bitI/Osupport,1toenable32bit
datatransfers,and3toenable32bitdatatransferswithaspecialsyncsequencerequiredbymany
chipsets.Thevalue3workswithnearlyall32bitIDEchipsets,butincursslightlymoreoverhead.
Notethat32bitreferstodatatransfersacrossaPCIorVLBbustotheinterfacecardonlyall
(E)IDEdrivesstillhaveonlya16bitconnectionovertheribboncablefromtheinterfacecard.

DNSSECisusedfor?
PostedbyseenagapeonNovember21,2014Nocomments
DNSSECisusedfor?
A.
EncryptedDNSqueriesbetweennameservers.
B.
CryptographicauthenticationofDNSzones.
C.
SecondaryDNSqueriesforlocalzones.
D.
DefiningasecureDNSsection.
E.
QueryingasecureDNSsection.
Explanation:
Seehttp://en.wikipedia.org/wiki/Domain_Name_System_Security_Extensions
DNSSECwasdesignedtoprotectInternetresolvers(clients)fromforgedDNSdata,suchasthat
createdbyDNScachepoisoning.AllanswersinDNSSECaredigitallysigned.Bycheckingthe
digital
signature,aDNSresolverisabletocheckiftheinformationisidentical(correctandcomplete)to
the
informationontheauthoritativeDNSserver.
Page1of512345
Questions&Answercollection

http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember1

22/22

Das könnte Ihnen auch gefallen