nerdexam
LPI

101-500 · Question #309

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/. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)

GNU and Unix Commands

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

(54 responses)
  • A
    6% (3)
  • B
    2% (1)
  • C
    87% (47)
  • D
    4% (2)
  • E
    2% (1)

Explanation

You've hit your Sonnet limit · resets Jun 8, 9am (UTC)

Topics

#mkdir#parent directories#directory creation#filesystem operations

Community Discussion

No community discussion yet for this question.

Full 101-500 Practice