Expand a glob to matching files.
Section: Globbing and Brace Expansion
Match files with glob
bash
bash
printf '%s
' *.txtExplanation
Globs are expanded by the shell before command execution.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Globbing and Brace Expansion