Question: moclr Linux multiple choice question Environment variables can be seen by using the commands set or env. If I issue the command TEACHER=professor I will
moclr Linux multiple choice question
Environment variables can be seen by using the commands "set" or "env". If I issue the command "TEACHER=professor" I will see it if I issue the "set" command but what will I have to do to see it in the output of the "env" command.
| I need to run the command "env TEACHER=professor" to make it a global variable. | ||
| Nothing, setting a variable to a value on the command line makes it a gloabl variable and therefore available in all child processes | ||
| The variable will only be seen when running "env" when I fork a new child shell, so you do not need to do anything | ||
| I need to run the command "export TEACHER" to make it a global variable. |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
