Multiple choice technology operating systems

The right sequence shell command substitution & expansion

  1. {}, ~, $,($)
  2. {}, $, ~,($)
  3. {}, ~,$,($)
  4. None

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

Shell expansion order is: brace expansion {} first, then tilde expansion ~, then variable expansion $, and finally command substitution $(). Option A shows this exact sequence. The order matters because later expansions can use results of earlier ones.