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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!