New Year Sale Special - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sntaclus

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

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"

Which of the following commands will output all of the lines that contain either the string Fred or fred? (Choose TWO correct answers.)

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

Which function does a shell program serve?

A.

It provides a graphical environment.

B.

It is responsible for establishing a connection to another computer.

C.

It receives user commands and executes them.

D.

It is responsible for logging a user into the system.

Which command will display the last line of the file foo.txt?

A.

head -n 1 foo.txt

B.

tail foo.txt

C.

last -n 1 foo.txt

D.

tail -n 1 foo.txt