Linux
a. run command cd; mkdir -p test/{test1,test2,test3}/{abc,def,ghi}; touch test/test{1,2,3}/abc{1,3,5,7}{a,b,c,d,e,f}.txt; touch test/test{1,2,3}/{abc,def}/testfile; cd -
b. output (using echo and wildcards) names of files in all 3 dirs (test1, test2 & test3) with any digit in their names with the final letter before extension (.txt) being "f".
c. output all files with .txt extension in directory test1.
d. output everything in test1 directory.
note: in all output commands use single symbol substitution for representing single symbol and multi-substitute symbol in opposite case. make sure commands will work no matter in which place in filesystem they are run