What does the following command do?

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

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

A.
Displays a bash syntax error message.

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

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

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

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

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 0

Your email address will not be published. Required fields are marked *