On“ Glob patterns and wildcards”

What are the differences by putting in ls *[:alunum:]* and ls *[[:alnum:]] and why ?

Screen Link: Learn data science with Python and R projects

My code:

/home/dq/brats$ cd ~/brats
/home/dq/brats$ ls *[:alunum:]
veruca
/home/dq/brats$ ls *[[:alnum:]]
augustus  mike  tv  veruca  violet

Character ranges and character classes are not square bracket wildcards. They are wildcards just like ? or *, although they must be used inside square brackets, otherwise they will be interpreted literally.

The second emphasis was added for this answer. Here’s a hint to guide you to it:

What is a pattern that you can use to get all files that end with any of these characters: :, a, l, n, u, m?