Bird
0
0

What does the export command do in a Linux shell?

easy📝 Conceptual Q1 of 15
Linux CLI - Environment and Configuration
What does the export command do in a Linux shell?
AChanges the value of an existing variable only in the current shell
BDeletes an environment variable
CDisplays all environment variables
DMakes a variable available to child processes
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of export

    The export command marks a variable to be passed to child processes.
  2. Step 2: Differentiate from other commands

    It does not delete, display, or only change local variables; it shares variables with subprocesses.
  3. Final Answer:

    Makes a variable available to child processes -> Option D
  4. Quick Check:

    export = share variable with children [OK]
Quick Trick: Use export to share variables with child processes [OK]
Common Mistakes:
  • Thinking export deletes variables
  • Confusing export with printenv
  • Assuming export only changes local variables

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes