U.S. Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

GAQM LCP-001 Exam - Topic 2 Question 106 Discussion

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?
C) mkdir -p images/photos/summer/ottawa/
A) mkdir -r images/photos/summer/ottawa/
B) mkdir -R images/photos/summer/ottawa/
D) mkdir -P images/photos/summer/ottawa/
E) mkdir -m images/photos/summer/ottawa/

GAQM LCP-001 Exam - Topic 2 Question 106 Discussion

Actual exam question for GAQM's LCP-001 exam
Question #: 106
Topic #: 2
[All LCP-001 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: C

-p options means no error if existing, make parent directories as needed. It will creates the directory images/photos/summer/Ottawa. Where images is the parent directory of photos, photos is the parent directory of summer etc.


Contribute your Thoughts:

0/2000 characters

Currently there are no comments in this discussion, be the first to comment!


Save Cancel