Which of the following commands lists all defined variables and functions within Bash?
Which of the following commands lists all defined variables and functions within Bash?
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.
wrong answer, correct answer is A command env displays all variables