Multiple choice technology operating systems

What is the command used for changing the scope of a shell variable to a global variable?

  1. global

  2. shell

  3. export

  4. None of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The export builtin marks a variable for export to child processes, effectively changing its scope from a shell‑local variable to a global (environment) variable. None of the other tokens perform this function, so the stored answer is correct.