Skip to content

Wildcards

One command, many files

  • A wildcard is a symbol that stands for "anything". The most common is *.
  • *.txt means "every name ending in .txt". The shell fills in the matches for you:
ls *.txt

ls *.txt matches every name ending in .txt and skips the others

Log in or create account

IGCSE & A-Level