The current directory contains the following files and subdirectories. Subdirectories are marked with a forward slash (/) at the end of their name. You can build this directory structure locally using this ZIP file1.
|-- .
|-- ..
|-- aa.txt
|-- abc.txt
|-- bb.txt
|-- cc.txt
|-- eEp
|-- fFq
|-- first/
| |-- 12345
| |-- abc.txt
| |-- abcde
| |-- data/
| | |-- one.txt
| | `-- two
| `-- def.txt
|-- gG
|-- o/
| |-- def.txt
|-- second/
| `-- data/
| |-- four.txt
| `-- three
|-- simpletxt
|-- test0
|-- test1
|-- test10
|-- test11
|-- test12
|-- test2
|-- test3
|-- test4
|-- test5
|-- test6
|-- test7
|-- test8
|-- test9
|-- testa
|-- testb
`-- testc
In each case, use a path name with filename expansion (globbing) to describe the following files in the shortest possible way. Hidden files are always excluded implicitly.
all files in the current directory whose name starts with test
all files in the current directory whose name starts with test followed by a single character
all files in the current directory whose name starts with test followed by a single digit
all files in the current directory whose name ends with p or q
all files in the current directory with extension .txt
all files in the current directory whose second character of the name is an uppercase letter
all files in the current directory whose name has exactly 5 characters
all files in the current directory whose name does not start with t or a
all files in the directory first
all files in the directory first with extension .txt
all files below the current directory that are below a directory data
all files with extension .txt that are below a subdirectory of a subdirectory of the current directory