LFCS Dumps LFCS Braindumps LFCS Real Questions LFCS Practice Test LFCS Actual Questions Linux-Foundation LFCS Linux Foundation Certified System Administrator https://killexams.com/pass4sure/exam-detail/LFCS Question #241 Given a file called birthdays containing lines like: YYYY-MM-DD Name - 1983-06-02 Tim 1995-12-17 Sue Which command would you use to output the lines belonging to all people listed whose birthday is in May or June? A. grep '[56]' birthdays B. grep 05?6? birthdays C. grep '[0-9]*-0[56]-' birthdays D. grep 06 birthdays | grep 05 Answer: C Question #242 The script, script.sh, consists of the following lines: #!/bin/bash echo $2 $1 Which output will appear if the command, ./script.sh test1 test2, is entered? A. test1 test2 B. test2 test1 C. script.sh test2 D. script.sh test1 E. test1 script.sh Answer: B Question #243 Which approach will provide a listing of the contents in a tar archive? A. Use the tar command with -t. B. Use the grep command. C. Use the find command. D. Use the zless command. E. Use the zlist command. Answer: A Question #244 Which character starts a comment line in a shell script file? A. ; B. * C. # D. / Answer: C Question #245 What is the output of the following command sequence? for token in a b c; do echo -n "$token "; done A. anbncn B. a b c C. "a " "b " "c " D. token token token E. abc Answer: B Question #246 What is the correct command to extract the contents of the archive file download.bz2? A. unpack download.bz2 B. unzip2 download.bz2 C. bunzip2 download.bz2 D. unzip download.bz2 E. uncompress download.bz2 Answer: C Question #247 Which command chain will count the number of regular files with the name of foo.txt within /home? A. ls -lR /home | grep foo.txt | wc -l B. find /home -type f -name foo.txt | wc -l C. find /home -name foo.txt -count D. find /home -name foo.txt | wc -l E. grep -R foo.txt /home | wc -l Answer: B Question #248 Which of the following command sequences overwrites the file foobar.txt? A. echo "QUIDQUIDAGIS" >> foobar.txt B. echo "QUIDQUIDAGIS" < foobar.txt C. echo "QUIDQUIDAGIS" > foobar.txt D. echo "QUIDQUIDAGIS" | foobar.txt Answer: C Question #249 Which of the following commands redirects the output of cmd to the file foo.txt, in which an existing file is overwritten? A. cmd || foo.txt B. cmd | foo.txt C. cmd && foo.txt D. cmd >> foo.txt E. cmd > foo.txt Answer: E Question #250 What does the exit status 0 indicate about a process? A. The process ended without any problems. B. The process was terminated by the user. C. The process couldn't finish correctly. D. The process waited for an input but got none. E. The process finished in time. Answer: A Question #251 Which of the following commands will output all of the lines with the name Fred in upper or lower case but not the word red from the file data_file? (Choose two) A. grep -v fred data_file B. grep '[f]red' data_file C. egrep fred data_file D. grep '[Ff]red' data_file E. grep -i fred data_file Answer: DE Question #252 The output of the program date should be saved in the variable actdat. What is the correct statement? A. actdat=`date` B. set actdat='date' C. date | actdat D. date > $actdat E. actdat=date Answer: A Question #253 SIMULATION - What two character sequence is present at the beginning of an interpreted script? (Please specify the TWO correct characters only) Answer: #! Question #254 How can the current directory and its subdirectories be searched for the file named MyFile.xml? A. find . -name MyFile.xml B. grep MyFile.xml | find C. grep -r MyFile.xml . D. less MyFile.xml E. search Myfile.xml ./ Answer: A Question #255 Which of the following commands will set the variable text to olaf is home? (Choose two) A. text=olaf\ is\ home B. text=$olaf is home C. $text='olaf is home' D. text=='olaf is home' E. text="olaf is home" Answer: AE Question #256 Which of the following commands will create an archive file, named backup.tar, containing all the files from the directory /home? A. tar /home backup.tar B. tar -cf /home backup.tar C. tar -xf /home backup.tar D. tar -xf backup.tar /home E. tar -cf backup.tar /home Answer: E 6$03/( 48(67,216 7KHVH TXHVWLRQV DUH IRU GHPR SXUSRVH RQO\ )XOO YHUVLRQ LV XS WR GDWH DQG FRQWDLQV DFWXDO TXHVWLRQV DQG DQVZHUV .LOOH[DPV FRP LV DQ RQOLQH SODWIRUP WKDW RIIHUV D ZLGH UDQJH RI VHUYLFHV UHODWHG WR FHUWLILFDWLRQ H[DP SUHSDUDWLRQ 7KH SODWIRUP SURYLGHV DFWXDO TXHVWLRQV H[DP GXPSV DQG SUDFWLFH WHVWV WR KHOS LQGLYLGXDOV SUHSDUH IRU YDULRXV FHUWLILFDWLRQ H[DPV ZLWK FRQILGHQFH +HUH DUH VRPH NH\ IHDWXUHV DQG VHUYLFHV RIIHUHG E\ .LOOH[DPV FRP $FWXDO ([DP 4XHVWLRQV .LOOH[DPV FRP SURYLGHV DFWXDO H[DP TXHVWLRQV WKDW DUH H[SHULHQFHG LQ WHVW FHQWHUV 7KHVH TXHVWLRQV DUH XSGDWHG UHJXODUO\ WR HQVXUH WKH\ DUH XS WR GDWH DQG UHOHYDQW WR WKH ODWHVW H[DP V\OODEXV %\ VWXG\LQJ WKHVH DFWXDO TXHVWLRQV FDQGLGDWHV FDQ IDPLOLDUL]H WKHPVHOYHV ZLWK WKH FRQWHQW DQG IRUPDW RI WKH UHDO H[DP ([DP 'XPSV .LOOH[DPV FRP RIIHUV H[DP GXPSV LQ 3') IRUPDW 7KHVH GXPSV FRQWDLQ D FRPSUHKHQVLYH FROOHFWLRQ RI TXHVWLRQV DQG DQVZHUV WKDW FRYHU WKH H[DP WRSLFV %\ XVLQJ WKHVH GXPSV FDQGLGDWHV FDQ HQKDQFH WKHLU NQRZOHGJH DQG LPSURYH WKHLU FKDQFHV RI VXFFHVV LQ WKH FHUWLILFDWLRQ H[DP 3UDFWLFH 7HVWV .LOOH[DPV FRP SURYLGHV SUDFWLFH WHVWV WKURXJK WKHLU GHVNWRS 9&( H[DP VLPXODWRU DQG RQOLQH WHVW HQJLQH 7KHVH SUDFWLFH WHVWV VLPXODWH WKH UHDO H[DP HQYLURQPHQW DQG KHOS FDQGLGDWHV DVVHVV WKHLU UHDGLQHVV IRU WKH DFWXDO H[DP 7KH SUDFWLFH WHVWV FRYHU D ZLGH UDQJH RI TXHVWLRQV DQG HQDEOH FDQGLGDWHV WR LGHQWLI\ WKHLU VWUHQJWKV DQG ZHDNQHVVHV *XDUDQWHHG 6XFFHVV .LOOH[DPV FRP RIIHUV D VXFFHVV JXDUDQWHH ZLWK WKHLU H[DP GXPSV 7KH\ FODLP WKDW E\ XVLQJ WKHLU PDWHULDOV FDQGLGDWHV ZLOO SDVV WKHLU H[DPV RQ WKH ILUVW DWWHPSW RU WKH\ ZLOO UHIXQG WKH SXUFKDVH SULFH 7KLV JXDUDQWHH SURYLGHV DVVXUDQFH DQG FRQILGHQFH WR LQGLYLGXDOV SUHSDULQJ IRU FHUWLILFDWLRQ H[DPV 8SGDWHG &RQWHQW .LOOH[DPV FRP UHJXODUO\ XSGDWHV LWV TXHVWLRQ EDQN DQG H[DP GXPSV WR HQVXUH WKDW WKH\ DUH FXUUHQW DQG UHIOHFW WKH ODWHVW FKDQJHV LQ WKH H[DP V\OODEXV 7KLV KHOSV FDQGLGDWHV VWD\ XS WR GDWH ZLWK WKH H[DP FRQWHQW DQG LQFUHDVHV WKHLU FKDQFHV RI VXFFHVV 7HFKQLFDO 6XSSRUW .LOOH[DPV FRP SURYLGHV IUHH [ WHFKQLFDO VXSSRUW WR DVVLVW FDQGLGDWHV ZLWK DQ\ TXHULHV RU LVVXHV WKH\ PD\ HQFRXQWHU ZKLOH XVLQJ WKHLU VHUYLFHV 7KHLU FHUWLILHG H[SHUWV DUH DYDLODEOH WR SURYLGH JXLGDQFH DQG KHOS FDQGLGDWHV WKURXJKRXW WKHLU H[DP SUHSDUDWLRQ MRXUQH\ 'PS .PSF FYBNT WJTJU IUUQT LJMMFYBNT DPN WFOEPST FYBN MJTU .LOO \RXU H[DP DW )LUVW $WWHPSW *XDUDQWHHG