LFCS Exam QuestionsBrowse all questions from this exam

LFCS Exam - Question 121


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

Show Answer
Correct Answer: B

The command 'set' lists all defined variables and functions within Bash. The 'env' command only lists environment variables, not functions or shell variables. The 'env -a' command is not valid, and 'echo $ENV' would only display the value of the ENV variable if it is set, but not all variables and functions.

Discussion

1 comment
Sign in to comment
hwoarangpOption: A
Jun 27, 2024

wrong answer, correct answer is A command env displays all variables