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

Top Tips for Passing the LPI 010-150 Exam on Your First Try

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

Buy Now
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.

Buy Now
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

Buy Now
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

Buy Now