Working on the command line · Question 12 of 12
Which statements about export in bash are true? (2 correct answers)
2 answers are correct. Hard Created with AI
Show answer
Answer
- C export without arguments (or export -p) lists the exported variables
- D Exported variables are inherited by all child processes started afterwards
Explanation
Inheritance only goes downwards. A variable becomes permanent only through an entry in a startup file such as ~/.bashrc or ~/.profile.