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.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications