QuestionQ39

Essential Commands

Which command below assigns the content FOO to the Bash variable named TEST?

  • A set TEST="FOO"
  • B TEST = "FOO"
  • C var TEST="FOO"
  • D TEST="FOO"
Explanation

Bash assigns a shell variable with the syntax name=value, without spaces surrounding =. Therefore, TEST="FOO" sets TEST to FOO.

Community Discussion

No comments yet. Be the first to start the discussion!