Professional Documents
Culture Documents
SimuladoProva101
1Martincallsyouonthetelephone.Hehasafilenamed"marketinfo"thathas56,000linesin it,andhewantstoseeonlythelast10,000.Whichofthefollowingcommandsshouldyoutellhim torun? A)tail+46000marketinfo B)tail+10000marketinfo C)tail46000marketinfo D)head+46000marketinfo E)head10000marketinfo F)tail+46001marketinfo 2Atthecommandline,TimhasgiventhecommandTODAY=Friday.Whichofthefollowing willshowthatthevariableTODAYisequaltoavalueofFriday? A)set B)env C)show D)display 3Whichofthefollowingcommandswillsendtheerrorsfromtheabcapplicationtoafile,but notthestandardoutput? A)abc>abc.error B)abc2>abc.error2>&1 C)abc2>abc.error D)abc>>abc.error
A)join B)paste C)cat D)od E)sort 5Timhasalargefilethatexceedsthesizeofafloppy'sstoragecapacity.Hewantstoputthefile ontwofloppiessohecantakeitwithhimwhenhejoinsthecompetition.Whatcommandcanhe usetomakethefilefittwofloppies? A)nl B)cut C)fmt D)split 6Youwishtofindallthefiveletterfilesinthecurrentdirectorythatendwiththeletter"c". Whatcommandshouldyouuse? A)ls*c B)ls*c* C)ls????c D)ls????c* 7Karenwantstosortthe"defg"fileanddisplayitsresultsonherscreen.Shealsowantsacopy ofthesortedresultstobesavedinafilenamed"defg.sorted".Whatcommandshouldsheuse? A)sortdefg>defg.sorted2>&1 B)sortdefg|teedefg.sorted C)sortdefg;teedefg.sorted D)defg>teedefg.sorted
D)/dev E)/null
9Kristinstartedaprocess3hoursagothattiesupmanysystemresources.Shehaswritten downinherdocumentationthatsheissupposedtostartitatalowerpriority,butsheforgotto doso.Whatutilitycansheuseatthispointtoreducethepriorityoftheprocess? A)nice B)ps C)top D)jobs E)renice 10Spencerhasanotationfromthecentralofficethatheistorunthezzzzutilitytodayonhis systemandthatitwillprobablyrunfor4hours.Thenotesaysthathewillneedtostartthejobin thebackground.Whatsyntaxshouldheusetodothis? A)bgzzzz B)zzzzbg C)zzzz& D)&zzzz 11 Spencer forgot to start the job in the background, and it is currently running in the foreground.WhatshouldSpencerfirsttypeonhiskeyboardtomovethejobtothebackground? A)bg B)jobs C)fg D)^Z 12WhatsearchcriteriawouldbestbeusedtofindthelineswithintheBRIO.TXTfileabout disks? A)grepdisksBRIO.TXT B)finddisksBRIO.TXT C)seddisksBRIO.TXT D)searchdisksBRIO.txt
www.lpibrasil.com.br
13Whichofthefollowingcharactersmustexistforapathtobeconsideredarelativepath (ratherthananabsolutepath)? A)\ B). C)? D)# 14Madonnaneedstochangethepermissionsonthefile"hope"(whicharecurrentlyequalto 700) such that the group has read and write permissions, and other has only read. Which commandwillallowhertoperformthischange? A)chmodg+rw:o+rhope B)chmodgo+r,owhope C)chmodg+rw,o+rhope D)chmodg+rw;o+rhope 15Tonyhasusedthecommandcat>fileonetostartcreatingafile.Heisnowinthemiddleofa lineandwouldliketoquitandsavethetexthehasentered.Whatmusthedo? A)Press^Donce B)Press^Zonce C)Press^Dtwice D)Press^Ztwice E)Press^Zfollowedby^D 16YoususpectthatMaudeistakingupanenormousamountofdiskspacewithimagessheis savingfromWebsites.Youknowforafactthatbecauseofthewaypermissionsareset,theonly placeshecanbesavingthesefilesisbeneathherhomedirectory.Whattoolcanyouusetosee howmuchdiskspacesheisusingbeneathherhomedirectory? A)quota B)quotaon C)df D)du 17YouaretheadministratorforACMEPlumbing.Duetorecentgrowth,youhavehadto expandfromthesimplesystemyouoncehadtosomethingconsiderablymorecomplicated.When your system comes up, you want to configure it to mount a number of remote filesystems www.lpibrasil.com.br
automatically.Whatfilemustyouedittoincludetheremotefilesystemsforautomaticmounting? A)/etc/inittab B)/etc/fstab C)/etc/group D)/dev/mnt 18Whatwouldbetheminimalpermission(s)neededonadirectorytobeabletosaveafile withinthatdirectory? A)read B)write C)execute D)readandwrite
19Whatarethedefaultpermissionsassignedtoanewlycreatedfileiftheumaskissetto44? A)rwww B)www C)rwrr D)rrr 20Whatarethedefaultpermissionsassignedtoanewlycreateddirectoryiftheumaskissetto 44? A)dwxwxwx B)dwx C)drwxwxwx D)drwxrr E)drwrr F)drrr 21AstheadministratorforDSTechnical,youhavecreatedascriptfileuserscanrunthatwill querytheirsystemandwriteaninventoryofwhattheyhaveintoatextfile.Duetoitssensitive nature,thescriptmustberunbyroot.Thescriptmustberunfromeachmachineinorderto work,andyouhavenoinclinationtospend2dayswalkingfrommachinetomachinerunningit. Youdecidetosendemailtotheuserstellingthemthattheymustrunthescriptbeforetheendof theday,andyougivethemthelocationtothefile.Whatpermissionsshouldyouassigntothefile ifitiscurrentlyownedbytherootownerandrootgroup? www.lpibrasil.com.br
A)777 B)1777 C)0777 D)4777 22Youhavecreatedascriptfilenamed"getall"inyourhomedirectory(/home/workerbee), whichyouarecurrentlyworkingin.Youassignpermissionsof744tothefileandwanttorunit. Bydefault,whichofthefollowingcommandswillexecutethescript? A)getall B)/usr/workerbee/getall C)/getall D)../getall
www.lpibrasil.com.br
26MadisonhasaddedthecommercialDSTECHeditor(version3.5.7)tohersystem.Noprinted documentation accompanied the CD, and now she wants to read the online documentation. Whereshouldthedocumentationnowreside? A)/usr/man/man8/DSTECH B)/usr/doc/DSTECH3.5.7 C)/usr/man/man8/DSTECH3.5.7 D)/usr/doc/3.5.7/DSTECH E)/usr/doc/DSTECH/3.5.7 F)/usr/man/man8/DSTECH/3.5.7gz 27Whichfieldofthe/usr/passwdfilecontainsfreetextthatallowsyoutoenteradescription abouttheuser? A)5 B)4 C)3 D)2 E)1 F)None 28Inwhichfilescanpasswordsforusersexist? A)password B)gpasswd C)shadow D)gshadow 29Whencreatingusers,Martinwouldliketohaveanumberoftemplatefilesautomatically copiedintotheirhomedirectories.Whereshouldthesetemplatefilesbeplaced? A)/etc/skel B)/home/skel C)/root/skel D)/skel 30Youhavecreatedanewdirectory(/system/bin) thatholds utilitiesyouhavewrittenfor internaluse.Aftercarefuldebuggingandtesting,allusersonyoursystemshould beableto accessthesefiles.Inordertodoso,thedirectoryneedstobeaddedtothePATHstatement.How www.lpibrasil.com.br
www.lpibrasil.com.br
SimuladoProva102
1Karenisgoingonmaternityleavefor6weeks.Whethershewillreturnafterthe6weeksis unknownatthistime,butyouhavebeentoldtoactasifshewill.Howcanyoubestdisableher accountwhilesheisgone? A)Deleteher.profilefileinthehomedirectory. B)Changeherpasswordtoanentitythatonlyyouknow. C)Addapoundsignasthefirstcharacterofherentryin/etc/passwd. D)Usetheuserdelcommandtodisableheraccounttemporarily. 2Whichtypeofbackupcanbeusedtogetallthefilesthathavebeenchangedorcreatedsince the last full backup was done, even if a number of smaller backups have been done in the interim? A)Incremental B)Differential C)Common D)Component 3Youwishtohaveanapplicationruneverynightat9:15P.M.Whatshouldthespecificationin thecrontabfileresemble? A)*1522** B)*2215** C)2215*** D)1522*** E)**1522* F)**2215* G)***2215 H)***1522 4Youwishtoallowallusersexceptthethreetemporaryemployeestousetheatfunctions.The threetemporaryemployeesareBob,Jan,andShannon.Whereshouldtherestrictionforthembe placed? A)at.allow B)cron.allow C)cron.deny www.lpibrasil.com.br
D)at.deny
5Youareshowinganewuserhowtocombinetwofilesintoasinglefilebyappendingthe outputofonetotheendofanother.Voutellhimthathe"shouldneverusethefollowingsyntax: catfileonefiletwo>fileoneWhatisyourreason? A)Thecatcommandwillreadonlyonefileatatime. B)Twogreaterthansigns(>>)mustalwaysbeusedwhencombiningfiles. C)Using"cat>"andgoingtothesamefileyouarereadingfromfirstemptiesthecontents. D)Youcancombinefilesinthisway. 6Tofindthecurrenttimeonasystem,whatisthecommandtouse? A)time B)date C)env D)set
7Tofindwhatdirectoryyouarecurrentlyin,whatisthecommandtouse? A)PWD B)cd C)where D)Noneoftheabove 8AllofthefollowingcanbesourcesofinformationabouttheDSTECHeditorexceptwhich one? A)/usr/doc/DSTECH B)DSTECHhelp C)Accompanying.pdffilesonthemedia D)Thedstech.comWebsite 9Whencreatingaloginnameforanewuser,whichrule(s)shouldyouadhereto? A)Usesomethingunlikelytobeeasilyguessed. B)Keepitsimple. C)Changeitoften. D)Alloftheabove. www.lpibrasil.com.br
10TextfilescreatedinLinuxandaccessibleatthecommandlinecanbeviewedwithwhich utility? A)l B)type C)cat D)Alloftheabove 11Themvcommandcanbeusedtoperformwhichfunction(s)? A)Moveafilefromonedirectorytoanother B)Renameafileinthesamedirectory C)Moveandrenameadirectory D)Alloftheabove
19Whichofthefollowingcommandscontainanerrorthatwillpreventthemfromexecuting? A)lsl*.txt B)lslt*.txt C)TERM=vwpt D)chown777fileone 20Thecommandfgrepkarenkristinwilldowhat? A)Findallfilescontaining"karen"and"kristin"intheirfilenames B)Notrungrepisneeded C)Findeveryoccurrenceof"karen"inthefile"kristin" D)Findeveryoccurrenceof"kristin"inthefile"karen" www.lpibrasil.com.br
22Whatisthenumericvalueofthepermissionsrwsrwrw? A)766 B)755 C)744 D)722 E)711 F)1766 G)1744 H)2766 I)2744 J)4766 K)4777 L)4744 M)4666
26Thefile"oursystem.commands"wascreatedonanancientterminalthathadonlyuppercase characters.Thefilewassupposedtobeashellscriptandnowwillnotrunbecauseallcommands appearinuppercase.Theentirefileneedstobeconvertedtolowercase.Whatutilitycanbeused forthispurpose? A)tac B)od C)tr D)expand 27Haroldhasafilewithalargenumberoffiguresinit.Hesortedthefile,tryingtoputitin orderfromlowesttohighestdollaramountspent,butitcameoutinanoddorder(1,10,11,100, 111,2,3,andsoon).WhatoptionshouldHaroldusetosortthefileintheorderdesired? A)n B)r C)b D)f
28 By default, beneath which directory would nonchanging system information and documentationmostlikelybefound? A)/etc B)/var C)/usr D)/home 29Whichentryintheinittabfileidentifiestherunlevelthesystemshouldattempttogotoon thenextboot? A)id B)s0 www.lpibrasil.com.br
C)bw D)pf
30Whichrunlevelwouldbeequaltocompletelypoweringthesystemoff? A)0 B)1 C)2 D)5 E)6 31Whichofthefollowingcommandswillreturnthecurrenttime? A)echo'date' B)echo'date' C)echo"date" D)echo$DATE
www.lpibrasil.com.br
GABARITOS
Simulado101 1F 2A 3C 4A 5D 6C 7B 8A 9E 10C Simulado102 1C 2B 3D 4D 5C 6B 7D 8B 9B 10C 11D 12D 13C 14A 15B 16A 17D 18A 19C 20C 21D 22J 23D 24C 25B 26C 27A 28C 29A 30A 31A 32D 11D 12A 13B 14C 15C 16D 17B 18B 19A 20C 21D 22B 23B 24B 25D 26B 27F 28C 29A 30A
www.lpibrasil.com.br