Does mkdir create subdirectories?
Answer
Creation of an entire directory tree can be accomplished with the mkdir command, which (as its name suggests) is used to make directories. The
-p option tells mkdir to create not only a subdirectory but also any of its parent directories that do not already exist.
Answer
Creation of an entire directory tree can be accomplished with the mkdir command, which (as its name suggests) is used to make directories. The
-p option tells mkdir to create not only a subdirectory but also any of its parent directories that do not already exist.