Pass the LPI LPI Linux Essentials 010-150 Questions and answers with CertsForce

Viewing page 3 out of 3 pages
Viewing questions 21-30 out of questions
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


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 can be used to view a file and do search operations within it while viewing the contents?

Options:

A.

less


B.

find


C.

grep


D.

report


E.

see


Questions # 24:

Which of the following commands will set the variable text to olaf is home? (Select TWO answers)

Options:

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"


Viewing page 3 out of 3 pages
Viewing questions 21-30 out of questions