What is the difference between the *, ?, and [ ] wildcards?

Updated -

Wildcards are symbols that stand for one or more unspecified characters used especially in searching text and in selecting multiple files or directories. There are three main symbols or wildcards that can be used, the asterisk (*) , question mark (?), and square bracket pair ([ ]).

For this entire article, we have a directory with 6 files in it wit...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content