PrepAway - Latest Free Exam Questions & Answers

One Comment on “Which of the following is the best way to list all defined shell variables?

  1. Nosferatu says:

    The ‘set’ command is a shell command that allows a user to set environmental variables. The ‘env’ command will echo all the variables that are set in a user’s environment, however, the -a option does not exist. As for ‘echo $ENV’, this will only display the environmental variable that’s defined for ENV.

    B is the correct answer.




    0



    0

Leave a Reply