Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation Exam LFCS Topic 8 Question 91 Discussion

Actual exam question for Linux Foundation's LFCS exam
Question #: 91
Topic #: 8
[All LFCS Questions]

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

Show Suggested Answer Hide Answer
Suggested Answer: B, C

Contribute your Thoughts:

Cherelle
1 months ago
Whoever came up with D. echo $ENV as an option must be living in a different universe. That's just silly.
upvoted 0 times
...
Louvenia
1 months ago
The correct answer has to be B. set. I remember learning that in my Bash scripting class.
upvoted 0 times
Judy
8 days ago
Oh, you're right. It is B) set.
upvoted 0 times
...
Romana
9 days ago
No, I'm pretty sure it's B) set.
upvoted 0 times
...
Leonora
10 days ago
I think it's A) env.
upvoted 0 times
...
...
Reuben
2 months ago
I was thinking C. env -a, but now I'm second-guessing myself. Hmm, tough choice.
upvoted 0 times
Shelton
1 months ago
B) set
upvoted 0 times
...
Cory
1 months ago
A) env
upvoted 0 times
...
...
Geoffrey
2 months ago
I'm not sure, but I think A) env might also be a possible answer.
upvoted 0 times
...
Francene
2 months ago
I agree with you, Carmela. The set command lists all defined variables and functions in Bash.
upvoted 0 times
...
Avery
2 months ago
B. set is the way to go, no doubt about it. It's like the Swiss Army knife of Bash commands.
upvoted 0 times
Shawnna
2 months ago
D) echo $ENV
upvoted 0 times
...
Trinidad
2 months ago
C) env -a
upvoted 0 times
...
Fredric
2 months ago
B) set
upvoted 0 times
...
Luis
2 months ago
A) env
upvoted 0 times
...
...
Carmela
2 months ago
I think the answer is B) set.
upvoted 0 times
...

Save Cancel