Exam LFCS All QuestionsBrowse all questions from this exam
Question 121

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

    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
hwoarangpOption: A

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