nerdexam
LPI

117-101 · Question #18

You need to create a simple hierarchy of directories: images/photos/summer/ottawa/. None of the directories on that path exists. What command will create all of the needed directories in one step?

The correct answer is C. mkdir -p images/photos/summer/ottawa/. See the full explanation below for the reasoning.

Question

You need to create a simple hierarchy of directories: images/photos/summer/ottawa/. None of the directories on that path exists. What command will create all of the needed directories in one step?

Options

  • Amkdir -r images/photos/summer/ottawa/
  • Bmkdir -R images/photos/summer/ottawa/
  • Cmkdir -p images/photos/summer/ottawa/
  • Dmkdir -P images/photos/summer/ottawa/
  • Emkdir -m images/photos/summer/ottawa/

How the community answered

(34 responses)
  • A
    3% (1)
  • B
    6% (2)
  • C
    74% (25)
  • D
    3% (1)
  • E
    15% (5)

Community Discussion

No community discussion yet for this question.

Full 117-101 Practice