Neste documento disponibilizamos simulados da LPIC1, provas 101 e 102, para você poder treinar e se preparar para encarar os exames da certificação LPI. No final, estão os gabaritos das duas provas para você conferir os seus resultados. Bons estudos e boa sorte!
Simulado Prova 1011 Martin calls you on the telephone. He has a file named "marketinfo" that has 56,000 lines in it, and he wants to see only the last 10,000. Which of the following commands should you tell him to run? A ) tail +46000 marketinfo B ) tail +10000 marketinfo C ) tail 46000 marketinfo D ) head +46000 marketinfo E ) head 10000 marketinfo F ) tail +46001 marketinfo 2 At the command line, Tim has given the command TODAY=Friday. Which of the following will show that the variable TODAY is equal to a value of Friday? A ) set B ) env C ) show D ) display 3 Which of the following commands will send the errors from the abc application to a file, but not the standard output? A ) abc > abc.error B ) abc 2 > abc.error 2>&1 C ) abc 2> abc.error D ) abc >> abc.error
4 You wish to combine two files together such that the fields from each file are combined into a single output file. The first field of each of the two starting files is identicalequal to the employee number. Which utility should you use to create the output file? www.lpibrasil.com.br
A ) join B ) paste C ) cat D ) od E ) sort 5 Tim has a large file that exceeds the size of a floppy's storage capacity. He wants to put the file on two floppies so he can take it with him when he joins the competition. What command can he use to make the file fit two floppies? A ) nl B ) cut C ) fmt D ) split 6 You wish to find all the fiveletter files in the current directory that end with the letter "c". What command should you use? A ) ls *c B ) ls *c* C ) ls ????c D ) ls ????c* 7 Karen wants to sort the "defg" file and display its results on her screen. She also wants a copy of the sorted results to be saved in a file named "defg.sorted". What command should she use? A ) sort defg > defg.sorted 2>&1 B ) sort defg | tee defg.sorted C ) sort defg ; tee defg.sorted D ) defg > tee defg.sorted
8 Evan must run a cleanup utility every night until the programmers can fix the code that is causing problems on his system. This utility is very verbose and displays a message for every line of a file it goes through. Where can Evan send the output to avoid it being displayed on his screen or filling up a file? A ) /dev/null B ) /root C ) /dev/root www.lpibrasil.com.br
D ) /dev E ) /null
9 Kristin started a process 3 hours ago that ties up many system resources. She has written down in her documentation that she is supposed to start it at a lower priority, but she forgot to do so. What utility can she use at this point to reduce the priority of the process? A ) nice B ) ps C ) top D ) jobs E ) renice 10 Spencer has a notation from the central office that he is to run the zzzz utility today on his system and that it will probably run for 4 hours. The note says that he will need to start the job in the background. What syntax should he use to do this? A ) bg zzzz B ) zzzz bg C ) zzzz & D ) & zzzz 11 Spencer forgot to start the job in the background, and it is currently running in the foreground. What should Spencer first type on his keyboard to move the job to the background? A ) bg B ) jobs C ) fg D ) ^Z 12 What search criteria would best be used to find the lines within the BRIO.TXT file about disks? A ) grep disks BRIO.TXT B ) find disks BRIO.TXT C ) sed disks BRIO.TXT D ) search disks BRIO.txtwww.lpibrasil.com.br
13 Which of the following characters must exist for a path to be considered a relative path (rather than an absolute path)? A ) \ B ) . C ) ? D ) # 14 Madonna needs to change the permissions on the file "hope" (which are currently equal to 700) such that the group has read ...