nerdexam
Oracle

1Z0-876 · Question #154

You need to find all files in your home directory hierarchy that contain the string sample in the file name. You want a relative path to each file so you can easily retrieve it. Choose the command…

The correct answer is B. find . -print | grep sample. See the full explanation below for the reasoning.

Question

You need to find all files in your home directory hierarchy that contain the string sample in the file name. You want a relative path to each file so you can easily retrieve it. Choose the command that will find these files.

Options

  • Als -l * | grep -v sample
  • Bfind . -print | grep sample
  • Cls -Rl | grep -i sample
  • Dgrep sample < find . -print

How the community answered

(30 responses)
  • A
    3% (1)
  • B
    73% (22)
  • C
    17% (5)
  • D
    7% (2)

Community Discussion

No community discussion yet for this question.

Full 1Z0-876 Practice