PrepAway - Latest Free Exam Questions & Answers

What does the following command do?

What does the following command do? cat ‘$TEST’

PrepAway - Latest Free Exam Questions & Answers

A.
Displays a bash syntax error message.

B.
Displays the contents of the file named $TEST if it exists.

C.
Waits for the user to enter text and then echos the text back.

D.
Displays the contents of the file named inside the back quotes.

E.
Displays the contents of the file named by the environment variable TEST.

Explanation:
Varaible is called the memory location containing the value. In linuxwecan read the value of
variable starting by $ symbol at starting of variable name.
Example: FILENAME=test.txt
echo$ FILENAME : Displays the value of variable FILENAME cat $FILENAME : Displays the
contents of file of $FILENAME


Leave a Reply