Skip to content

Wildcards · ⁨通配符⁩

English

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:

中文

一条命令,多个文件

  • 通配符是代表“任意内容”的符号。最常见的是 *。
  • *.txt 表示“所有以 .txt 结尾的名字”。shell 会替你把匹配项填进去:
ls *.txt

ls *.txt 匹配每个以 .txt 结尾的名字,跳过其他文件

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩