exam questions

Exam 1z0-821 All Questions

View all questions & answers for the 1z0-821 exam

Exam 1z0-821 topic 1 question 65 discussion

Actual exam question from Oracle's 1z0-821
Question #: 65
Topic #: 1
[All 1z0-821 Questions]

A user jack, using a bash shell, requests a directory listing as follows:

Which three statements are correct?

  • A. The pattern dir? will expand to dira dirb dirc.
  • B. The pattern dir*a will expand to diraa.
  • C. The pattern dir*a will expand to dira diraa.
  • D. The pattern dir*b? will expand to dirabc.
  • E. The pattern dir*b? will expand to dirb dirabc.
Show Suggested Answer Hide Answer
Suggested Answer: ACD 🗳️
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

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
majekla
6 months ago
Default answers are correct. B. is right BUT IS AN INCOMPLETE ANSWER. C. is a complete answer for this question. As dlicheri says it, * means any or nothing.
upvoted 1 times
...
dlicheri
1 year, 6 months ago
The following are correct ... A. The pattern dir? will expand to dira dirb dirc - ls dir? (where ? is anything) B. The pattern dir*a will expand to diraa (dir*a where * is anything even nothing) try it! C. The pattern dir*a will expand to dira diraa (yes, * can be anything of any length including nothing) D. The pattern dir*b? will expand to dirabc (yes, where ? is one character)
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago