You can use some wildcard characters (metacharacter wildcards) to match part of a file or a directory name.
-
*: match any number of characters.
-
?: match one occurrence of a character.
-
[...]: define one occurrence, a set, or a range of characters.
You can also use curly braces (
{}) to expand a set of characters to match part of a file or a directory name.
You can use the exclamation character (
!) to exclude a pattern: