exam questions

Exam 102-500 All Questions

View all questions & answers for the 102-500 exam

Exam 102-500 topic 1 question 42 discussion

Actual exam question from LPI's 102-500
Question #: 42
Topic #: 1
[All 102-500 Questions]

Which command makes the shell variable named VARIABLE visible to subshells?

  • A. export $VARIABLE
  • B. env VARIABLE
  • C. set $VARIABLE
  • D. set VARIABLE
  • E. export VARIABLE
Show Suggested Answer Hide Answer
Suggested Answer: E 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
iwkno6
Highly Voted 4 months, 3 weeks ago
export VARIABLE is correct. (without $ to create and export, while with $ to call it with echo)
upvoted 9 times
...
CuriousLinuxCat
Highly Voted 5 months, 1 week ago
Tested on Ubuntu 20.04. Answer E is correct.
upvoted 6 times
...
ellen_AA
Most Recent 10 months, 2 weeks ago
how is that correct?
upvoted 1 times
McLaba
8 months, 4 weeks ago
export VARIABLE -> the command 'export' create a variable (named VARIABLE) and you can see the value in all sub shell with echo $VARIABLE
upvoted 6 times
Jodelo
6 months, 2 weeks ago
Exactly
upvoted 1 times
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago