Wildcards (globbing)

Wildcards, or globbing, are special characters that the shell replaces with the matching file names before running the command. * represents any sequence of characters, ? a single character, and [abc] one of the listed characters. They let you act on many files at once.

Example

ls *.txt
rm rapport-?.csv

Related concepts

The whole glossary