nerdexam
LPI

117-102 · Question #35

To test a shell script called myscript, the environment variable FOOBAR must be removed temporarily. How can this be done?

The correct answer is C. env -u FOOBAR myscript. See the full explanation below for the reasoning.

Question

To test a shell script called myscript, the environment variable FOOBAR must be removed temporarily. How can this be done?

Options

  • Aunset -v FOOBAR
  • Bset -a FOOBAR=""
  • Cenv -u FOOBAR myscript
  • Denv -i FOOBAR myscript

How the community answered

(60 responses)
  • A
    3% (2)
  • B
    12% (7)
  • C
    78% (47)
  • D
    7% (4)

Community Discussion

No community discussion yet for this question.

Full 117-102 Practice