Multiple choice technology operating systems

How do you get all files, which having 3rd place as r, g or i?

  1. ls [rgi]

  2. ls ?3[rgi]*

  3. ls ??[rgi]*

  4. ls **[rgi]?

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

The pattern ??[rgi]* matches files where the 3rd character is r, g, or i: ?? (any 2 chars), [rgi] (3rd char), * (rest). *[rgi]* would match r/g/i anywhere, ?3[rgi]* incorrectly requires '3', **[rgi]? has invalid glob syntax.