Wildcards
Lesson 8 of 20 · Term.Micro
`*`, `?` and `[...]` select many files at once.
*.png means "any name that ends in .png". ls photos/*.png lists only the PNG images.
The shell expands patterns before the command runs
Check yourself
Which pattern matches cat.png and dog.png but not beach.jpg?
Do it in the browser: a real the Linux terminal tool, a short mission and instant feedback. No install.
Start this lesson — free