Wildcards Flashcards
When can wildcards be used?
In whatever command that receives a file or a directory as an argument
What is the * for when use in ls command?
It stands for match 0 or more characters
How can you match exactly one character when using ls command (it doesn’t matter what character is)?
?
How can we use a character class when using ls command?
with brackets [], an example for matching all the vowels is [aeiou]
Does the character classes have a negation operand when using ls command?
Yes, if you do [!aeiou] it will match all the characters that are not the vowels.
How can you specify a range with character classes when using ls command?
an example of a range is [1-6] this means any number from 1 to 6 (they are inclusive, meaning 1 and 6 also match).
Name some named character classes when using ls command?
[[:alpha]], [[:digit]], [[:alnum]], [[:lower]], [[:upper]]
How can we escape a character when using wildcards?
\