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