exam questions

Exam LX0-104 All Questions

View all questions & answers for the LX0-104 exam

Exam LX0-104 topic 7 question 5 discussion

Actual exam question from CompTIA's LX0-104
Question #: 5
Topic #: 7
[All LX0-104 Questions]

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

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

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
linux_admin
2 years, 2 months ago
The command that lists all defined variables and functions within Bash is set. The set command is used to display the values of all shell variables, including both environment variables and local variables. Additionally, if no options are specified, the set command will also display the names and values of all shell functions that are defined in the current shell environment.
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