Which of the following is the best way to list all defined shell variables?
A.
env
B.
set
C.
env -a
D.
echo $ENV
Explanation:
A) env – run a program in a modified environment (-a does not exist)
C) option -a does not exist
D) echo $ENV prints the shell variable $ENV if it exists