LPIC-1 Exam 102 v5 (Linux Administrator) — Question 83

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

Answer options

Correct answer: D

Explanation

The command 'set' in Bash shows all defined variables and functions. The other options do not provide a complete list of variables and functions; for instance, 'env' and 'env -a' focus on environment variables, while 'export' is used to set variables for child processes, and 'echo $ENV' simply outputs the value of the ENV variable if it exists.