Multiple choice unix

Which of the following files will displayed by this command cat ch

  1. patch

  2. catch

  3. .ch

  4. All of the above

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

The wildcard * matches any string (including empty). cat ch matches 'patch' (ch at end), 'catch' (ch at start), and '.ch' (ch at start). Since all options match, 'All of the above' is correct.