Oracle
1Z0-821 · Question #100
1Z0-821 Question #100: Real Exam Question with Answer & Explanation
The correct answer is A. The pattern dir? will expand to dira dirb dirc. C. The pattern dir*a will expand to dira diraa. D. The pattern dir*b? will expand to dirabc.. A: dir followed by a single letter. C: dir followed by any characters ending with a. D: dir followed by any characters, then character b, then one single character. only dirabc matches
Question
A user jack, using a bash shell, requests a directory listing as follows: jack@solaris: ~ $ 1s dira dirb dirc diraa dirabc Which three statements are correct?
Options
- AThe pattern dir? will expand to dira dirb dirc.
- BThe pattern dir*a will expand to diraa.
- CThe pattern dir*a will expand to dira diraa.
- DThe pattern dir*b? will expand to dirabc.
- EThe pattern dir*b? will expand to dirb dirabc.
Explanation
A: dir followed by a single letter. C: dir followed by any characters ending with a. D: dir followed by any characters, then character b, then one single character. only dirabc matches
Community Discussion
No community discussion yet for this question.