nerdexam
CompTIA

LX0-101 · Question #34

What does the following command do? cat '$TEST'

The correct answer is B. Displays the contents of the file named $TEST if it exists. See the full explanation below for the reasoning.

Question

What does the following command do? cat '$TEST'

Options

  • ADisplays a bash syntax error message.
  • BDisplays the contents of the file named $TEST if it exists.
  • CWaits for the user to enter text and then echos the text back.
  • DDisplays the contents of the file named inside the back quotes.
  • EDisplays the contents of the file named by the environment variable TEST.

How the community answered

(37 responses)
  • A
    14% (5)
  • B
    76% (28)
  • C
    3% (1)
  • D
    3% (1)
  • E
    5% (2)

Community Discussion

No community discussion yet for this question.

Full LX0-101 Practice