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

Which of the following commands displays all environment and shell variables?

Answer options

Correct answer: D

Explanation

The correct command to display all environment and shell variables is 'env', which outputs the current environment settings. The other options either do not exist or serve different purposes, such as 'ls' which lists directory contents, and 'getargs', 'lsenv', and 'lsshell' which are not standard commands for this function.