nerdexam
Oracle

1Z0-821 · Question #100

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?

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

Administering Oracle Solaris 11 OS on a Single System

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.

How the community answered

(22 responses)
  • A
    82% (18)
  • B
    9% (2)
  • E
    9% (2)

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

Topics

#shell globbing#wildcard patterns#bash shell#filename expansion

Community Discussion

No community discussion yet for this question.

Full 1Z0-821 Practice