PrepAway - Latest Free Exam Questions & Answers

Which command will delete the environment variable FOOBAR?

Which command will delete the environment variable FOOBAR?

PrepAway - Latest Free Exam Questions & Answers

A.
unset FOOBAR

B.
del $FOOBAR

C.
export FOOBAR

D.
export FOOBAR=

Explanation:
From http://www.slackbook.org/html/shell-bash.html:
$ unset VARIABLE
unset will remove any variables that you give it, wiping out both the variable and its value; bash will forget that variable ever existed.


Leave a Reply