Summer Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

Free LPI 010-150 Practice Exam with Questions & Answers | Set: 3

Questions 21

The output of the program date should be saved in the variable actdat. What is the correct statement?

Options:
A.

actdat=`date`

B.

set actdat='date'

C.

date | actdat

D.

date > $actdat

E.

actdat=date

LPI 010-150 Premium Access
Questions 22

What is the output of the following command?

tail -n 20 test.txt

Options:
A.

The first 20 lines of test.txt.

B.

The last 20 lines of test.txt omitting the blank lines.

C.

The last 20 lines of test.txt with line numbers.

D.

The last 20 lines of test.txt including blank lines.

Questions 23

Which of the following commands will create an archive file, named backup.tar, containing all the files from the directory /home?

Options:
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

Questions 24

How could one search for the file foo.txt under the directory /home?

Options:
A.

search /home -file foo.txt

B.

search /home foo.txt

C.

find /home -file foo.txt

D.

find /home -name foo.txt

E.

find /home foo.txt