Introduction to Linux I Chapter 6 Exam Answer
Question ID 456
Which of the following is not used for globbing?
Question ID 460
How many times can you use a * glob character in a pattern?
- No limit
Question ID 461
The command echo a* will display:
- All of the files in the current directory that begin with an “a” character.
- Only the file named “a*”.
- All of the files in any directory that begin with an “a” character.
- All of the files in the current directory that begin with an “a” or “A” character.
Question ID 462
The command echo ???a will display:
- All of the files in the current directory that have four characters in the file name.
- All of the files in the current directory that have four characters in the file name with the last character being an “a” character.
- All of the files in the current directory that end with an “a” character.
- Only a file named ???a
Question ID 463
Which of the following characters can be used to negate (indicate NOT matching the following characters), when placed as the first of a set of characters enclosed in square brackets  ?
Question ID 464
The range defined inside of square brackets is based on the:
- Standard text table
- ASCII text table
- Invalid question as ranges are not permitted
- ANSI text table
Question ID 465
To view the ASCII text table in Linux, you can use the following command:
- view ASCII
- list ACSII
- man ASCII
- echo ASCII
Question ID 466
Within square brackets, (Example: [?]) the ? character means:
- Match a ? character
- Match zero or more of any ? characters
- Exactly one character
- Nothing, it has no meaning at all
Question ID 467
You can combine glob characters in a single pattern, for example: a??*[0-9].
True or False?
Question ID 469
Which command will display more information about globbing?
- echo globbing
- man 7 globbing
- man 7 glob
- man -7 glob
Question ID 470
Which command performs globbing?
- The ls command
- The echo command
- The bash command
- The display command
Question ID 471
Which of the following will match files that have the string “hello” somewhere in the file name?
- echo hello*hello
- echo hello*
- echo *hello*
- echo *hello
Question ID 472
The glob pattern [a-d] would match:
- A file name with a single character that is either an “a”, “-“, or “d”.
- Nothing, this is an invalid glob pattern.
- A file name with a single character that is either a “a”, “b”, “c”, or “d”.
- All files
Question ID 473
The glob pattern [!abc]*
- Nothing, this is an invalid glob pattern
- All files that start with any character except “a”, “b” or “c”
- All files
- All files that start with either of the following characters: “!”, “a”, “b” or “c”.
Question ID 894
Which glob character matches “exactly one character”?
Question ID 895
Which glob character matches “zero or more characters”?
Question ID 896
Which two characters match “a single character from a set of specified characters”?
Question ID 897
Which two characters represent the empty string?