Bird
0
0

What does the export command do in a Linux shell?

easy📝 Conceptual Q11 of 15
Linux CLI - Environment and Configuration
What does the export command do in a Linux shell?
AMakes a shell variable available to child processes
BDeletes a shell variable permanently
CLists all files in the current directory
DChanges the current directory
Step-by-Step Solution
Solution:
  1. Step 1: Understand shell variables and environment

    Shell variables exist only in the current shell session unless exported.
  2. Step 2: Role of export

    The export command marks a variable to be passed to child processes as environment variables.
  3. Final Answer:

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

    export = share variable with child processes [OK]
Quick Trick: Export shares variables with child processes [OK]
Common Mistakes:
  • Thinking export deletes variables
  • Confusing export with file commands
  • Assuming export changes directories

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes