exam questions

Exam 102-500 All Questions

View all questions & answers for the 102-500 exam

Exam 102-500 topic 1 question 80 discussion

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

Which of the following commands lists all defines variables and functions within Bash?

  • A. env
  • B. export
  • C. env -a
  • D. set
  • E. echo $ENV
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
jegga
Highly Voted 1 year, 9 months ago
D is correct
upvoted 5 times
...
klever
Most Recent 8 months, 1 week ago
set outputs all of the currently assigned shell variables and functions. Since that can be a lot of lines (try it yourself!), it is recommended to use it in combination with a pager such as less: $ set | less
upvoted 2 times
...
drliu1202
1 year, 1 month ago
Selected Answer: D
"set outputs all of the currently assigned shell variables and functions." https://learning.lpi.org/en/learning-materials/102-500/105/105.1/105.1_02/#:~:text=set%20outputs%20all%20of%20the%20currently%20assigned%20shell%20variables%20and%20functions.
upvoted 3 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