A directory contains the following files aardvark ferret koa
A directory contains the following files:
aardvark ferret koala porpoise unicorn
bonefish grunion llama quacker vicuna
capybara hyena marmot rabbit weasel
dingo ibex nuthatch seahorse yak
emu jellyfish ostrich tuna zebu
Which files will be listed by the command
ls [abc]*e*?
ls *[mn]*[io]*h
ls [xyz]*
ls *e*[abc]
ls *[our]
ls [rst]*a*
Solution
1) ls [abc]*e*?
Ans: bonefish
2) ls *[mn]*[io]*h
Ans: bonefish
3) ls [xyz]*
Ans: yak zebu
4) ls *e*[abc]
Ans: hyena
5) ls *[our]
Ans: dingo emu quacker zebu
6) ls [rst]*a*
Ans: rabbit seahorse tuna
