Question 5 — AZ-104 Practice Exam 7
Which file type would not be matched by the command ls *.[jp]*? (Select one answer)
.jpg
.jpeg
.png
.gif
Correct answers
.gif
Explanations
Correct:
.gif: The bracket expression [jp] only matches j or p, so .gif files are excluded.
Wrong:
.jpg: The pattern matches .jpg because of j.
.jpeg: The pattern matches .jpeg because it starts with j.
.png: The pattern matches .png because of p.