Вы находитесь на странице: 1из 26

3/14/2015

117201(v.2)|LinuxQuestions&AnswersPart2

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)

Thefollowingisanexcerptfromtheoutputoftcpdumpnlieth1
udp':13:03:17.277327IP192.168.123.5.1065>192.168.5.112.53:
43653+A?
PostedbyseenagapeonNovember21,2014Nocomments
Thefollowingisanexcerptfromtheoutputoftcpdumpnlieth1udp':
13:03:17.277327IP192.168.123.5.1065>192.168.5.112.53:43653+A?lpi.org.(25)
13:03:17.598624IP192.168.5.112.53>192.168.123.5.1065:436531/0/0A
24.215.7.109(41)
Whichnetworkserviceorprotocolwasused?
A.
FTP
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember19

1/26

3/14/2015

117201(v.2)|LinuxQuestions&AnswersPart2

B.
HTTP
C.
SSH
D.
DNS
E.
DHCP
Explanation:
192.168.5.112.53showsthatweconnecttoPort53and/etc/servicesspecifiesport53asDNS.
#cat/etc/services
Domain53/tcp#namedomainserver
Domain53/udphereisanotherexampleoftcpdumpcatchingaDNSrequestandresponse:
11:17:44.585523IP10.1.112.106.48380>8.8.8.8.53:7880+A?www.google.at.(31)
11:17:44.621611IP8.8.8.8.53>10.1.112.106.48380:78808/0/0CNAMEwww.google.com.,
CNAME
www.l.google.com.,A209.85.135.103,A209.85.135.147,A
209.85.135.105,A209.85.135.104,A209.85.135.99,A209.85.135.106(175)

whichstageofthebootprocesswouldthismessagebeseen?
PostedbyseenagapeonNovember21,2014Nocomments
Duringwhichstageofthebootprocesswouldthismessagebeseen?
ide_setup:hdc=idescsi
A.
Daemoninitializationandsetup.
B.
Bootloaderstartandhandofftokernel.
C.
Hardwareinitializiationandsetup.
D.
Kernelloading.
Explanation:
Seehttp://www.learninglinuxkernel.com/Linux_Boot_Process.html
IntheKernelLoadingphaseitreinitializesparallelports,serialportsandalltheonboard
controllers
likeUSB,IDE,SCSI,Serial,parallel,timers,RTCetc.ThesestartupdriversarealsocalledBSP
drivers
orBoardSupportDrivers.

Howcanthisbeachieved?
PostedbyseenagapeonNovember21,2014Nocomments
Afterconfiguringanew2.4serieskernel,alldependencies,suchasincludedfiles,needtobe
created.Howcanthisbeachieved?
A.
makedependencies
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember19

2/26

3/14/2015

117201(v.2)|LinuxQuestions&AnswersPart2

B.
makeclean
C.
makemrproper
D.
makedep
E.
maketest
Explanation:
/usr/src/linux#makeclean
Ifyouvealreadybuiltthesystemandaremakingminorchanges,notwantingtorecompileallthe
objectsagain,skipthisstep.Ifyouwanttobeapuristandmakesureyourestartingabsolutely
fresh,dothisstep./usr/src/linux#makemrproper
Thiscompletelycleansoutyourbinarydirectories.IonlydothisifIvereallyscrewedsomething
up.
Notethatthisdeletesyour.configfile,soyoumightwanttorenameitfirst!Ihardlyeverdothis.
/usr/src/linux#makedepThisdeterminesalltheheaderfiledependencies.Dothiswheneveryouve
madeachangetotheconfiguation.

whichofthefollowingcommandsmustberemovetheroutetothe
network10.10.1.0/24?
PostedbyseenagapeonNovember21,2014Nocomments
ConsideringthefollowingkernelIProutingtablenow,whichofthefollowingcommandsmustbe
removetheroutetothenetwork10.10.1.0/24?
KernelIProutingtable
DestinationGatewayGenmaskFlagsMetricRefUseIface
200.207.199.1620.0.0.0255.255.255.255UH000ppp0
172.16.87.00.0.0.0255.255.255.0U000eth0
192.168.246.00.0.0.0255.255.255.0U000eth1
10.10.1.0192.168.246.11255.255.255.0UG000eth1
127.0.0.00.0.0.0255.0.0.0U000lo
0.0.0.0200.207.199.1620.0.0.0UG000ppp0
A.
routedel10.10.1.0
B.
routedel10.10.1.0/24
C.
routedelnet10.10.1.0/24
D.
routedel10.10.1.0/24gw192.168.246.11
E.
routedelnet10.10.1.0
Explanation:
EitherspecifynetinCIDRnotationorspecifyparameternetmask

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

3/26

3/14/2015

117201(v.2)|LinuxQuestions&AnswersPart2

VMware vCloud Air Network


Hover to Expand

whichisthedefaultlogfilethatcouldprovidehintsaboutthe
problem?
PostedbyseenagapeonNovember21,2014Nocomments
Someusersareunabletoconnecttospecificlocalhostsbyname,whileaccessinghostsinother
zonesworksasexpected.GiventhatthehostsarereachablebytheirIPaddresses,whichisthe
defaultlogfilethatcouldprovidehintsabouttheproblem?
A.
/var/named/log
B.
/var/lib/named/dev/log
C.
/var/log/bind_errors
D.
/var/log/bind/errors
E.
/var/log/messages
Explanation:
BINDusessyslogdbeforeavalidloggingclauseisavailablesonamed.confparseerrorsandother
informationwillappearin/var/log/messages(dependingonsyslog.conf)priorto,orintheabsence
of,avalidloggingclause.
OnUbuntuSystemsthisisequalto/var/log/syslog.

whichfilewillbereadbydefault?
PostedbyseenagapeonNovember21,2014Nocomments
Ifthecommandarpfisrun,whichfilewillbereadbydefault?
A.
/etc/hosts
B.
/etc/ethers
C.
/etc/arp.conf
D.
/etc/networks
E.
/var/cache/arp
Explanation:
fromthemanpages:
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember19

4/26

3/14/2015

117201(v.2)|LinuxQuestions&AnswersPart2

arpmanipulatethesystemARPcache
ffilename,filefilename
Similartothesoption,onlythistimetheaddressinfoistakenfromfilefilename.Thiscanbeused
if
ARPentriesforalotofhostshavetobesetup.Thenameofthedatafileisveryoften/etc/ethers,
butthisisnotofficial.Ifnofilenameisspecified/etc/ethersisusedasdefault.

WhatisthedifferencebetweenzImageandbzImagetargetswhen
compilingakernel?
PostedbyseenagapeonNovember21,2014Nocomments
WhatisthedifferencebetweenzImageandbzImagetargetswhencompilingakernel?
A.
zImageiscompressedusinggzip,bzImageiscompressedusingbzip2
B.
zImageisfor2.4serieskernels,bzImageisfor2.6serieskernels
C.
zImageisloadedintolowmemory,bzImageisloadedintohighmemory
D.
zImageislimitedto64k,bzImageisnot
Explanation:
Seehttp://www.ibiblio.org/oswg/oswgnightly/oswg/en_US.ISO_8859
1/articles/alessandrorubini/boot/boot/zimage.html

WhichTWOofthefollowingneedtobedoneonaclientmachineto
usethisDNSserver?
PostedbyseenagapeonNovember21,2014Nocomments
ADNSserverhastheIPaddress192.168.0.1.WhichTWOofthefollowingneedtobedoneona
clientmachinetousethisDNSserver?
A.
Addnameserver192.168.0.1to/etc/resolv.conf
B.
Runrouteaddnameserver192.168.0.1
C.
Runifconfigeth0nameserver192.168.0.1
D.
Ensurethatthednsserviceislistedinthehostsentryinthe/etc/nsswitch.conffile
E.
Runbindaddnameserver192.168.0.1
Explanation:
See
http://en.wikipedia.org/wiki/Resolv.conf
and
http://en.wikipedia.org/wiki/Name_Service_Switch
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember19

5/26

3/14/2015

117201(v.2)|LinuxQuestions&AnswersPart2

Whatmustbedonetodirectexample.orgemailtowardsfred?
PostedbyseenagapeonNovember21,2014Nocomments
Themailserveriscurrentlycalledfred,whiletheprimaryMXrecordpointstomailhost.example.org.
Whatmustbedonetodirectexample.orgemailtowardsfred?
A.
AddanArecordformailhosttofredsIPaddress.
B.
AddaCNAMErecordfrommailhosttofred
C.
AddanotherMXrecordpointingtofredsIPaddress.
D.
AddaPTRrecordfrommailhosttofred.
Explanation:
IfthereisalreadyanArecordformailhost.example.orgyouneedtochangethistofredsipaddress.

WhichofthesewayscanbeusedtoonlyallowaccesstoaDNSserver
fromspecifiednetworks/hosts?
PostedbyseenagapeonNovember21,2014Nocomments
WhichofthesewayscanbeusedtoonlyallowaccesstoaDNSserverfromspecified
networks/hosts?
A.
Usingthelimit{}statementinthenamedconfigurationfile.
B.
Usingtheallowquery{}statementinthenamedconfigurationfile.
C.
Usingtheansweronly{}statementinthenamedconfigurationfile.
D.
Usingtheanswer{}statementinthenamedconfigurationfile.
E.
Usingthequeryaccess{}statementinthenamedconfigurationfile.
Explanation:
Toallowaspecificclientaccesstothednsserveruse
Allowquery{192.168.0.1}
Alternativelyyoucanusetheaclkeyword
acllan{192.168.0.1}

Allowquery{lan}

Whichofthesecommandsallowsyoutousesharedlibrariesthatare
in/usr/local/lib?
PostedbyseenagapeonNovember21,20141comment
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember19

6/26

3/14/2015

117201(v.2)|LinuxQuestions&AnswersPart2

Whichofthesecommandsallowsyoutousesharedlibrariesthatarein/usr/local/lib?
A.
exportLD_PRELOAD=/usr/local/lib
B.
exportLD_LIBRARY_PATH=/usr/local/lib
C.
ldconfig/usr/local/lib
D.
ldd/usr/local/lib
Explanation:
Fromthemanpages:
ldconfigcreates,updates,andremovesthenecessarylinksandcache(forusebytheruntime
linker,
ld.so)tothemostrecentsharedlibrariesfoundinthedirectoriesspecifiedonthecommandline,in
thefile/etc/ld.so.conf,andinthetrusteddirectories(/usr/liband/lib).ldconfigcheckstheheader
andfilenamesofthelibrariesitencounterswhendeterminingwhichversionsshouldhavetheir
links
updated.ldconfigignoressymboliclinkswhenscanningforlibraries.
lddprintsharedlibrarydependencies
LD_PRELOADawhitespaceseparatedlistofadditional,userspecified,ELFsharedlibrariesto
be
loadedbeforeallothers.Thiscanbeusedtoselectivelyoverridefunctionsinothersharedlibraries.
ForsetuserID/setgroupIDELFbinaries,onlylibrariesinthestandardsearchdirectoriesthatare
alsosetuserIDwillbeloaded.
LD_LIBRARY_PATHacolonseparatedlistofdirectoriesinwhichtosearchforELFlibrariesat
executiontime.
SimilartothePATHenvironmentvariable

WhichTWOarchivingformatsareusedtocreateaninitramfsimage?
PostedbyseenagapeonNovember21,2014Nocomments
WhichTWOarchivingformatsareusedtocreateaninitramfsimage?
A.
gzip
B.
tar
C.
rar
D.
cpio
E.
bzip2
Explanation:
Seehttp://www.kernel.org/doc/Documentation/filesystems/ramfsrootfsinitramfs.txt
All2.6Linuxkernelscontainagzippedcpioformatarchive,whichisextractedintorootfswhen
the
kernelbootsup.
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember19

7/26

3/14/2015

117201(v.2)|LinuxQuestions&AnswersPart2

whatisthefirstmakecommandthatshouldberunwhichwilldelete
anycurrentconfigurationandallgeneratedfiles?
PostedbyseenagapeonNovember21,2014Nocomments
AfterunpackingthesourcecodeforaLinuxkernel,whatisthefirstmakecommandthatshouldbe
runwhichwilldeleteanycurrentconfigurationandallgeneratedfiles?Thiscommandwillensure
thatnoinappropriatefileswereleftinthekernelarchivebythemaintainer.
A.
makedepend
B.
makedistclean
C.
makeconfig
D.
makeclean
E.
makemrproper
Explanation:
Seehttp://www.gnu.org/software/automake/manual/automake.html#Clean

Whichscript,inthelinux/scriptsdirectory,canbeusedtoaddup
gradesorupdatedcodetothe2.6.xxkernelsourcecode?
PostedbyseenagapeonNovember21,2014Nocomments
Whichscript,inthelinux/scriptsdirectory,canbeusedtoaddupgradesorupdatedcodetothe
2.6.xxkernelsourcecode?
A.
patch
B.
patchkernel
C.
kernelupdate
D.
upgradekernel
E.
upgrade
Explanation:
Seehttp://answers.oreilly.com/topic/36howtopatchalinuxkernel/

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

3/14/2015

117201(v.2)|LinuxQuestions&AnswersPart2

Whattoolcanyouusetoprintsharedlibrarydependencies?
PostedbyseenagapeonNovember21,2014Nocomments
Whattoolcanyouusetoprintsharedlibrarydependencies?
A.
ldconfig
B.
ldd
C.
libdep
D.
libpath
E.
ldev
Explanation:
Fromthemanpages:
lddprintsharedlibrarydependencies

Whichofthefollowingcommandswillcopyonediskpartition
/dev/sda3to/dev/sdb3?
PostedbyseenagapeonNovember21,2014Nocomments
Whichofthefollowingcommandswillcopyonediskpartition/dev/sda3to/dev/sdb3?
A.
ddif=/dev/sdb3of=/dev/sda3bs=4096conv=notrunc
B.
ddif=/dev/sda3of=/dev/sdb3bs=4096conv=notrunc
C.
ddinput/dev/sda3output/dev/sdb3bs=4096conv=notrunc
D.
ddinput/dev/sdb3output/dev/sda3bs=4096conv=notrunc
Explanation:
Fromthemanpages:
ddconvertandcopyafile
SYNOPSIS
dd[OPERAND]
ddOPTION
DESCRIPTION
Copyafile,convertingandformattingaccordingtotheoperands.
bs=BYTESreadandwriteBYTESbytesatatime(alsoseeibs=,obs=)
if=FILEreadfromFILEinsteadofstdin
of=FILEwritetoFILEinsteadofstdout

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

9/26

3/14/2015

117201(v.2)|LinuxQuestions&AnswersPart2

PostedbyseenagapeonNovember21,2014Nocomments
Afterunpackingsourcecode,whatfileisusedbyconfiguretocreateafinalMakefile?
A.
configure.in
B.
configure.ac
C.
Makefile.in
D.
Makefile.tmpl
Explanation:
Seehttp://www.lasamhna.de/library/compile/configure.html

Whatisthemostlikelyreason?
PostedbyseenagapeonNovember21,2014Nocomments
UserJosephhassuccessfullyextractedandcompiledaprogramfromsourcecode.Installingthe
binariesproduceserrors.Whatisthemostlikelyreason?
A.
ThesourcecodewascompiledforadifferentCPU
B.
Thepermissionssetinthe/usr/bindirectoryarewrong
C.
Thebinariesrequirerootprivilegestobeinstalled
D.
Thewrongprefixwasusedduringconfigurationofthesourcecode
Explanation:
/usr/localusuallyrequiresrootprivilegestowriteto

Whatcommandshouldyourunbeforerecompilingthecodeinto
binaryform?
PostedbyseenagapeonNovember21,2014Nocomments
Youhavefinishedupdatingandresolvingdependenciesforsomesourcecode.Whatcommand
shouldyourunbeforerecompilingthecodeintobinaryform?
A.
makeclean
B.
makeall
C.
makedep
D.
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember1

10/26

3/14/2015

117201(v.2)|LinuxQuestions&AnswersPart2

makeinstall
Explanation:
Makeall,makedep,makeinstallcompilethecodemakecleanistheonlyoptionthatcanberun
beforecompiling.

HowcanyoumanuallyaddanentrytoyoursystemsARPcache?
PostedbyseenagapeonNovember21,2014Nocomments
HowcanyoumanuallyaddanentrytoyoursystemsARPcache?
A.
Directlyedit/etc/arpcache
B.
RunaddarphostnameFF:FF:FF:FF:FF:FF
C.
Runpingahostname
D.
RunarpshostnameFF:FF:FF:FF:FF:FF
E.
Editarp.confandrestartarpd
Explanation:
Fromthemanpages:
shostnamehw_addr,sethostname
ManuallycreateanARPaddressmappingentryforhosthostnamewithhardwareaddresssetto
hw_addrclass,butformostclassesonecanassumethattheusualpresentationcanbeused.Forthe
Ethernetclass,thisis6bytesinhexadecimal,separatedbycolons.Whenaddingproxyarpentries
(thatisthosewiththepublishflagsetanetmaskmaybespecifiedtoproxyarpforentiresubnets.
Thisisnotgoodpractice,butissupportedbyolderkernelsbecauseitcanbeuseful.Ifthetempflag
isnotsuppliedentrieswillbepermanentstoredintotheARPcache.

whichofthefollowingcommandswouldgatherthedatarequestedby
theclient?
PostedbyseenagapeonNovember21,2014Nocomments
Youfindthatahost(192.168.1.4)beingusedononeofyourclientsnetworkshasbeen
compromisedwithabackdoorprogramlisteningonport31337.Yourclientrequestsalistof
originatingIPaddressesconnectingtothatport.UsingaLinuxworkstationastrafficanalyzer,which
ofthefollowingcommandswouldgatherthedatarequestedbytheclient?
A.
tcpdumphost192.168.1.4andport31337wout
B.
nmaphost192.168.1.4:31337
C.
arpwatchn192.168.1.4/32p31337>capture
D.
pcapd192.168.1.4:31337
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember1

11/26

3/14/2015

117201(v.2)|LinuxQuestions&AnswersPart2

E.
ipwatchsyn192.168.1.4p313371og=out
Explanation:
tcpdumpdumptrafficonanetwork

nmapNetworkexplorationtoolandsecurity/portscanner
http://en.wikipedia.org/wiki/Arpwatch
http://en.wikipedia.org/wiki/Pcap
http://www.scrounge.org/ipwatch/

Whichtoolcanbeusedtocontroltheruntimebehaviorofudev?
PostedbyseenagapeonNovember21,2014Nocomments
Whichtoolcanbeusedtocontroltheruntimebehaviorofudev?
A.
udev
B.
udevctl
C.
udevadm
D.
udevconfig
E.
udevclient
Explanation:
Fromthemanpages:
udevadmudevmanagementtool
udevadmexpectsacommandandcommandspecificoptions.Itcontrolstheruntimebehaviorof
udev,requestskernelevents,managestheeventqueue,andprovidessimpledebugging
mechanisms.

Whatisthepurposeofudevmonitor?
PostedbyseenagapeonNovember21,2014Nocomments
Whatisthepurposeofudevmonitor?
A.
Listentokerneleventsproducedbyaudevruleandprintinformationtotheconsole
B.
Monitorsthe/devdirectoryfornewdevices
C.
Monitorstheudevprocessandprintsperformancestatisticstotheconsole
D.
CommunicateswithDBustosetupnewdevices
Explanation:
udevmonitorwasreplacedbyudevadmmonitor.
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember1

12/26

3/14/2015

117201(v.2)|LinuxQuestions&AnswersPart2

Whatisthetermforunmountingafilesystem,whichcleansupall
referencestothefilesystem,assoonasitisnotinuseanylonger?
PostedbyseenagapeonNovember21,2014Nocomments
Whatisthetermforunmountingafilesystem,whichcleansupallreferencestothefilesystem,as
soonasitisnotinuseanylonger?
A.
soft
B.
strong
C.
forced
D.
lazy
E.
delayed
Explanation:
Fromthemanpages:
umountunmountfilesystems
lLazyunmount.Detachthefilesystemfromthefilesystemhierarchynow,andcleanupall
referencestothefilesystemassoonasitisnotbusyanymore.(Requireskernel2.4.11orlater.)

Whichsystemfilesareupdatedasdevicesaremountedandunmount
toprovideinformationonthemounteddevicesandtheoptionsused?
PostedbyseenagapeonNovember21,2014Nocomments
Whichsystemfilesareupdatedasdevicesaremountedandunmounttoprovideinformationonthe
mounteddevicesandtheoptionsused?(PleasespecifyTWOanswers)
A.
/proc/dtab
B.
/etc/mtab
C.
/etc/fstab
D.
/proc/mounts
E.
/proc/devices
Explanation:
Theprogramsmountandumountmaintainalistofcurrentlymountedfilesystemsinthefile
/etc/mtab.Ifnoargumentsaregiventomount,thislistisprinted.
See
http://linux.web.cern.ch/linux/scientific5/docs/rhel/Deployment_Guide/s2procmounts.html
Similartothecontentsof/etc/mtab,exceptthat/proc/mountismoreuptodate.
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember1

13/26

3/14/2015

117201(v.2)|LinuxQuestions&AnswersPart2

whichcommandcanbeusedtostoptheapache2initscriptfrom
runningatboottimeoncetherealscripthasbeenremovedfrom
/etc/init.d/?
PostedbyseenagapeonNovember21,2014Nocomments
OnaDebianbasedsystem,whichcommandcanbeusedtostoptheapache2initscriptfromrunning
atboottimeoncetherealscripthasbeenremovedfrom/etc/init.d/?
A.
updaterc.ddapache2
B.
updaterc.dapache2delete
C.
updaterc.dremoveapache2
D.
updaterc.dapache2remove
E.
updaterc.ddeleteapache2
Explanation:
Seehttp://www.debuntu.org/howtomanageserviceswithupdaterc.d

Whichcommandcouldbeusedtoseethekernelmessagescreated
fromtheboottimeuntilnow?
PostedbyseenagapeonNovember21,2014Nocomments
Whichcommandcouldbeusedtoseethekernelmessagescreatedfromtheboottimeuntilnow?
A.
initm
B.
initmessage
C.
initmsg
D.
inittab
E.
dmesg
Explanation:
Fromthemanpages:
dmesgprintorcontrolthekernelringbuffer

Whichofthefollowingcommandswilltellnamedtoreloaditszone
files?
PostedbyseenagapeonNovember21,2014Nocomments
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember1

14/26

3/14/2015

117201(v.2)|LinuxQuestions&AnswersPart2

AzonefileontheDNSserverhasbeenupdated.Whichofthefollowingcommandswilltellnamedto
reloaditszonefiles?(PleaseselectTWOcorrectanswers)
A.
killallHUPnamed
B.
killallnamed
C.
rndcreload
D.
rndcflush
E.
namedcheckzoner
Explanation:
Fromthemanpages:
SignalsInroutineoperation,signalsshouldnotbeusedtocontrolthenameserverrndcshouldbe
usedinstead.
SIGHUPForceareloadoftheserver.formoreinformationonrndcsee
http://www.centos.org/docs/5/html/Deployment_GuideenUS/s1bindrndc.html

WhichhdparmcommandlineoptionswillsetanIDEharddisktouse
bothDMAand32bitI/Osupport?
PostedbyseenagapeonNovember21,2014Nocomments
WhichhdparmcommandlineoptionswillsetanIDEharddisktousebothDMAand32bitI/O
support?
A.
p1A1
B.
fg
C.
L1i1
D.
d1c1
E.
L1i32
Explanation:
Fromthemanpages:
hdparmprovidesacommandlineinterfacetovariousharddiskioctlssupportedbythestockLinux
ATA/IDEdevicedriversubsystem.
cQuery/enable(E)IDE32bitI/Osupport.Anumericparametercanbeusedtoenable/disable32
bit
I/Osupport:Currentlysupportedvaluesinclude0todisable32bitI/Osupport,1toenable32bit
datatransfers,and3toenable32bitdatatransferswithaspecialsyncsequencerequiredbymany
chipsets.
dDisable/enabletheusing_dmaflagforthisdrive.Thisoptionnowworkswithmost
combinations
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember1

15/26

3/14/2015

117201(v.2)|LinuxQuestions&AnswersPart2

ofdrivesandPCIinterfaceswhichsupportDMAandwhichareknowntothekernelIDEdriver.It
is
alsoagoodideatousetheappropriateXoptionincombinationwithd1toensurethatthedrive
itselfisprogrammedforthecorrectDMAmode,althoughmostBIOSsshoulddothisforyouat
boot
time.

Whichofthefollowingapplicationsutilizethedevicemapper?
PostedbyseenagapeonNovember21,2014Nocomments
Whichofthefollowingapplicationsutilizethedevicemapper?(SelectTWOcorrectanswers)
A.
SELinux
B.
LVM2
C.
EVMS
D.
GRUB
E.
LILO
Explanation:
Seehttp://en.wikipedia.org/wiki/Device_mapper

Whyhasmkinitrdbeendeprecatedinfavourofmkinitramfsin2.6
serieskernels?
PostedbyseenagapeonNovember21,2014Nocomments
Whyhasmkinitrdbeendeprecatedinfavourofmkinitramfsin2.6serieskernels?(SelectTWO
correctanswers)
A.
Itisntloadeduntillaterinthebootprocess
B.
AneasytouseGUIisavailableformkinitramfs
C.
mkinitrdreliesondevfs
D.
SATAharddrivesareunsupported
Explanation:
seehttp://wiki.debian.org/InitrdReplacementOptions
Initrdtoolsreliesondevfsandonremovedordeprecated/procinterfaces.Ithasnomaintainer.Its
CodingStyleisweird.Thereisnosupportforsata

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

16/26

3/14/2015

117201(v.2)|LinuxQuestions&AnswersPart2

PostedbyseenagapeonNovember21,2014Nocomments
ALinuxserverisrunninginsingleusermode,buttheproblemthatexistedbeforeisnowfixed.What
commandismostappropriatetorestoretheservertoservice?
A.
reboot
B.
telinit2
C.
shutdownrnow
D.
telinit3
E.
shutdownhnow
Explanation:
seehttp://en.wikipedia.org/wiki/Runlevel
IDNameDescription
1SingleUserModeDoesnotconfigurenetworkinterfaces,startdaemons,orallownonroot
logins.
2MultiUserModeDoesnotconfigurenetworkinterfacesorstartdaemons.
3MultiUserModewithNetworkingStartsthesystemnormally.
4Notused/UserdefinableForspecialpurposes.
5X11Asrunlevel3+displaymanager.

WhichTWOcommandscanbeusedtodisplayaswapusage
summary?
PostedbyseenagapeonNovember21,2014Nocomments
Theswapusageonasystemneedstobechecked.WhichTWOcommandscanbeusedtodisplaya
swapusagesummary?
A.
swapconfig
B.
cat/proc/swaps
C.
swapons
D.
swapshow
E.
cat/etc/fstab
Explanation:
Fromthemanpages:
swapon,swapoffenable/disabledevicesandfilesforpagingandswapping
s,summaryDisplayswapusagesummarybydevice.Equivalenttocat/proc/swaps.
/proc/swapsprovidesasnapshotofeveryswapfilename,thetypeofswapspace,thetotalsize,and
theamountofspaceinuse(inkilobytes).Theprioritycolumnisusefulwhenmultipleswapfiles
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember1

17/26

3/14/2015

117201(v.2)|LinuxQuestions&AnswersPart2

are
inuse.Thelowerthepriority,themorelikelytheswapfileistobeused.

Toremovethepatchpatch2.4.28.tar.bz2fromakernelsourcetree,
thecommandthatmustbeusedis:
PostedbyseenagapeonNovember21,2014Nocomments
Toremovethepatchpatch2.4.28.tar.bz2fromakernelsourcetree,thecommandthatmustbe
usedis:
A.
bunzip2../patch2.4.28.tar.bz2|patchrp1
B.
bunzip2c../patch2.4.28.tar.bz2|patchRp1
C.
bunzip2c../patch2.4.28.tar.bz2|unpatchp1
D.
bunzip2../patch2.4.28.tar.bz2|unpatchp1
E.
bunzip2../patch2.4.28.tar.bz2|patchRp1
F.
bunzip2c../patch2.4.28.tar.bz2|patchrp1
Explanation:
bunzip2:cstdoutCompressordecompresstostandardoutput.patch:RorreverseAssumethat
thispatchwascreatedwiththeoldandnewfilesswapped.Patchattemptstoswapeachhunk
aroundbeforeapplyingit.Rejectscomeoutintheswappedformat.

WhichofthefollowingentriesareNOTvalidin/etc/raidtab?
PostedbyseenagapeonNovember21,2014Nocomments
WhichofthefollowingentriesareNOTvalidin/etc/raidtab?
A.
superblockpersistent
B.
chunksize
C.
nrsparedisks
D.
nrraiddisks
Explanation:
Fromthemanpages:
Thesearethepossibleentriesin/etc/raidtab:
raiddevnrraiddisksnrsparediskspersistentsuperblockparityalgorithmchunksizesizedevice
raiddisksparediskparitydiskfaileddisk

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

18/26

3/14/2015

117201(v.2)|LinuxQuestions&AnswersPart2

Whatneedstobedonetoenableusageofthismodule?
PostedbyseenagapeonNovember21,2014Nocomments
Aprecompiledmodulehasbeenmovedto/lib/modules/<kernelversion>,butmodprobea
<modulename>failstoloadit.Whatneedstobedonetoenableusageofthismodule?
A.
makemodules_installmustberun.
B.
depmodmustberun.
C.
Thekernelmustberecompiled.
D.
modules.conformodprobe.confmustbeedited.
E.
Thesystemmustberebooted.
Explanation:
Fromthemanpages:
depmodprogramtogeneratemodules.depandmapfiles.
depmodcreatesalistofmoduledependenciesbyreadingeachmoduleunder/lib/modules/version
anddeterminingwhatsymbolsitexportsandwhatsymbolsitneeds.Bydefault,thislistiswritten
to
modules.dep,andabinaryhashedversionnamedmodules.dep.bin,inthesamedirectory.If
filenamesaregivenonthecommandline,onlythosemodulesareexamined(whichisrarelyuseful
unlessallmodulesarelisted).
depmodalsocreatesalistofsymbolsprovidedbymodulesinthefilenamedmodules.symbolsand
itsbinaryhashedversion,modules.symbols.bin.
modprobeexpectsanuptodatemodules.dep.binfile(orfallbackhumanreadablemodules.dep
file),asgeneratedbythecorrespondingdepmodutilityshippedalongwithmodprobe(see
depmod(8)).Thisfilelistswhatothermoduleseachmoduleneeds(ifany),andmodprobeusesthis
toaddorremovethesedependenciesautomatically.

Whichofthefollowingcommandsshouldbeusedinabashscriptthat
needsavariablecontainingtheIPaddressoftheeth0interface?
PostedbyseenagapeonNovember21,20141comment
Whichofthefollowingcommandsshouldbeusedinabashscriptthatneedsavariablecontaining
theIPaddressoftheeth0interface?Theoutputforthecommandifconfigeth0isshownbelow:
eth0Linkencap:EthernetHWaddr00:0C:29:CB:FA:30
inetaddr:192.168.246.11Bcast:192.168.246.255Mask:255.255.255.0UPBROADCAST
RUNNINGMULTICASTMTU:1500Metric:1
RXpackets:4721errors:0dropped:0overruns:0frame:0TXpackets:3216errors:0
dropped:0overruns:0carrier:0collisions:0txqueuelen:1000
RXbytes:445184(434.7Kb)TXbytes:512968(500.9Kb)Interrupt:185Baseaddress:0x1080
A.
IP=LANG=ifconfigeth0|awk{print$2}|cutf2
B.
IP=`LANG=ifconfigeth0|grepinet|cutd:f2|awk{print$1}`
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember1

19/26

3/14/2015

117201(v.2)|LinuxQuestions&AnswersPart2

C.
IP=`LANG=ifconfigeth0|awk{print$3}`
D.
IP=$(LANG=ifconfigeth0|grepinet|awk{print$2}|cutd:f2)
E.
IP=$(LANG=ifconfigeth0|grepinet|cutd:f2)

whatmustbedonetoaccessthenewpath?
PostedbyseenagapeonNovember21,2014Nocomments
Youhaveelectedtousetheautomounterandtheautofsscript.Your/etc/auto.masterfilecontains
thefollowing:
/home/etc/auto.home
/project/etc/auto.project
/datayp:data.map
Ifyouchangethecontentsof/etc/auto.projecttoincludeanewsourcepathwhatmustbedoneto
accessthenewpath?
A.
ShutdownandrestartthelocalNFSclientdaemons
B.
Runfsckontheaffectedmountpoint
C.
Issuethe/etc/init.d/autofsreloadcommand
D.
Addthenewlymappedpathto/etc/fstab
E.
NothingSimplyaccessthenewlymappedresource
Explanation:
Fromthemanpages:
/etc/init.d/autofsreloadwillcheckthecurrentauto.mastermapagainstrunningdaemons.Itwillkill
thosedaemonswhoseentrieshavechangedandthenstartdaemonsforneworchangedentries.Ifa
mapismodifiedthenthechangewillbecomeeffectiveimmediately.

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
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember1

20/26

3/14/2015

117201(v.2)|LinuxQuestions&AnswersPart2

foo.
E.
Librarydependenciesareshowninthe/usr/libdirectory.

HowcanDMAbeenabledforthedevice/dev/hda?
PostedbyseenagapeonNovember21,2014Nocomments
HowcanDMAbeenabledforthedevice/dev/hda?
A.
echo1>/proc/ide/hda/dma
B.
sysctlwdev.ide.dma=1
C.
dmaadd/dev/hda
D.
hdparmd1/dev/hda
E.
insmoddmadev=/dev/hda

whichofthefollowingcommandscouldbeused?
PostedbyseenagapeonNovember21,2014Nocomments
Torestorethekernelsourcetotheprevious,unpatched,version,whichofthefollowingcommands
couldbeused?
A.
patchrestore
B.
patchremove
C.
patchU
D.
patchundo
E.
patchR
Explanation:
Rorreverse

whichofthefollowingcommandsshouldbeusedtoapplythepatch
/tmp/foopatch?
PostedbyseenagapeonNovember21,2014Nocomments
Ifthecurrentdirectoryis/rootandthekernelsourceislocatedin/usr/src/linux,whichofthe
followingcommandsshouldbeusedtoapplythepatch/tmp/foopatch?
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember1

21/26

3/14/2015

117201(v.2)|LinuxQuestions&AnswersPart2

A.
cat/tmp/foopatch|patchp0
B.
cd/usr/src/linuxcat/tmp/foopatch|patchp0
C.
cd/usr/src/linuxcat/tmp/foopatch|patch
D.
cd/usr/src/linuxpatchp1</tmp/foopatch
E.
cd/usr/src/linuxpatchp1>/tmp/foopatch
Explanation:
Fromthemanpages:
Patchtakesapatchfilepatchfilecontainingadifferencelistingproducedbythediffprogramand
appliesthosedifferencestooneormoreoriginalfiles,producingpatchedversions.Normallythe
patchedversionsareputinplaceoftheoriginals.[...]Ifnooriginalfileorigfileisspecifiedonthe
commandline,patchtriestofigureoutfromtheleadinggarbagewhatthenameofthefiletoeditis.

A2.6.9ac1kernelwouldbe
PostedbyseenagapeonNovember21,2014Nocomments
A2.6.9ac1kernelwouldbe
A.
analphakernel.
B.
someonespatchtoastablekernel.
C.
astablekernel.
D.
anunstablekernel.
E.
someonespatchtoanunstablekernel.
Explanation:
2.xisastablekernelifxisanevennumber.Kernelsarenumberedlike2.6.37.(see
www.kernel.org)

whatPCIdevicescanbeseen,withoutqueryingthekernel?
PostedbyseenagapeonNovember21,2014Nocomments
WhatcommandshouldbeusedtofindoutwhatPCIdevicescanbeseen,withoutqueryingthe
kernel?
A.
lspciv
B.
lspcis
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember1

22/26

3/14/2015

117201(v.2)|LinuxQuestions&AnswersPart2

C.
lspcix
D.
lspcib
E.
lspcip
Explanation:
bBuscentricview.ShowallIRQnumbersandaddressesasseenbythecardsonthePCIbus
instead
ofasseenbythekernel.

whichkernelmodulemustbeloadedtoenableCDburningwithan
IDECDwriter?
PostedbyseenagapeonNovember21,2014Nocomments
Consideringthata2.4seriesLinuxkernelisbeingused,whichkernelmodulemustbeloadedto
enableCDburningwithanIDECDwriter?
A.
idecd
B.
idecdrw
C.
idecdb
D.
idescsi
E.
Noneoftheabove
Explanation:
Seehttp://linux.ardynet.com/idescsi.php3

Whatcommandmustbeusedtocreateanext3filesystem?
PostedbyseenagapeonNovember21,2014Nocomments
Whatcommandmustbeusedtocreateanext3filesystem?
A.
mke2fs
B.
mkext2fs
C.
mke3fs
D.
mkext3fs
E.
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember1

23/26

3/14/2015

117201(v.2)|LinuxQuestions&AnswersPart2

mkjfs
Explanation:
Fromthemanpages:
mke2fscreateanext2/ext3/ext4filesystem

Whichofthefollowingactionsisthebestonetobeusedinorderto
identifyandfixtheproblem?
PostedbyseenagapeonNovember21,2014Nocomments
TheLinuxkernelisloadedsuccessfullybythebootloader.However,straightafterthekernelmounts
therootfilesystem,thebootprocessstopsandanerrormessageregardinginitisshown.Whichof
thefollowingactionsisthebestonetobeusedinordertoidentifyandfixtheproblem?
A.
Theadministratorrebootsthesystemwitharecoverydiskandcheckstherootfilesystemfor
errorswithfsck.
B.
Theadministratorrebootsthesystemwitharecoverydiskandrestoresfromabackup.
C.
Theadministratorrebootsthesystemandtellsthekernel,throughthebootloaderprompt,touse
/bin/bashastheinitialprocess.
D.
Theadministratorrebootsthesystemwitharecoverydiskandinstallsanewkernel.
E.
Theadministratorrebootsthesystemandtellsinit,throughthebootloaderprompt,tousea
differentrunlevel.
Explanation:
seehttp://en.wikipedia.org/wiki/Init#Skipping_init

Whatcommandmustberuntomakealloftheotherfilesystems
listedin/etc/fstabaccessible?
PostedbyseenagapeonNovember21,2014Nocomments
Amachineisrunninginsingleusermodeand,assuch,notallfilesystemsareaccessible.What
commandmustberuntomakealloftheotherfilesystemslistedin/etc/fstabaccessible?
A.
mountall
B.
mountfsall
C.
mountfsa
D.
mounta
Explanation:
Fromthemanpages:
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember1

24/26

3/14/2015

117201(v.2)|LinuxQuestions&AnswersPart2

Mountmountafilesystem
a,allMountallfilesystems(ofthegiventypes)mentionedinfstab.

Whatcommandisusedtoforceafilesystemcheck,whenrebooting?
PostedbyseenagapeonNovember21,2014Nocomments
Whatcommandisusedtoforceafilesystemcheck,whenrebooting?
A.
rebootf
B.
shutdownfnow
C.
shutdowncrnow
D.
fsckr
E.
shutdownFrnow
Explanation:
Fromthemanpages:
Shutdownbringthesystemdown
rRequeststhatthesystemberebootedafterithasbeenbroughtdown.
FForcefsckonreboot.(seehttp://linux.die.net/man/8/shutdown)
FisnotavailableonDebianSystems

Whatcommandcanbeusedonanexisting(formatted)partition,to
configuretheintervalbetweendiskcheckswhenmountingpartitions?
PostedbyseenagapeonNovember21,2014Nocomments
Whatcommandcanbeusedonanexisting(formatted)partition,toconfiguretheintervalbetween
diskcheckswhenmountingpartitions?
A.
mke2fs
B.
e2fsck
C.
e2fsckconfig
D.
config2fs
E.
tune2fs
Explanation:
Fromthemanpages:
tune2fsadjusttunablefilesystemparametersonext2/ext3/ext4filesystems
iintervalbetweenchecks[d|m|w]Adjustthemaximaltimebetweentwofilesystemchecks.No
suffixordwillinterpretthenumberintervalbetweenchecksasdays,masmonths,andwas
http://www.aiotestking.com/linux/category/single/exam117201lpilevel2exam201advancedlevellinuxcertificationpart1of2updatenovember1

25/26

3/14/2015

117201(v.2)|LinuxQuestions&AnswersPart2

weeks.
Avalueofzerowilldisablethetimedependentchecking.
Page2of512345
Questions&Answercollection

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

26/26