Lpi linux 101
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 101
1 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