Multiple choice technology operating systems

how to create a directory test and its child subtest using a single command

  1. mkdir /test/subtest

  2. mkdir -P /test/subtest

  3. mkdir -p /test/subtest

  4. none of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The mkdir command requires the lowercase -p flag to create parent directories as needed in a single command, such as creating both test and its subdirectory subtest.