nerdexam
CompTIA

LX0-101 · Question #167

Which command allows you to make a shell variable visible to subshells?

The correct answer is B. export VARIABLE. See the full explanation below for the reasoning.

Question

Which command allows you to make a shell variable visible to subshells?

Options

  • Aexport $VARIABLE
  • Bexport VARIABLE
  • Cset $VARIABLE
  • Dset VARIABLE
  • Eenv VARIABLE

How the community answered

(19 responses)
  • B
    74% (14)
  • C
    5% (1)
  • D
    5% (1)
  • E
    16% (3)

Community Discussion

No community discussion yet for this question.

Full LX0-101 Practice