Multiple choice technology operating systems

Which command is used to create recursive directories.2) mkdir -v x/y x/y/z3) mkdir -p x/y x/y/z4) mkdir x x/y x/y/z

  1. i and ii

  2. i,ii,iv

  3. iii,iv

  4. All the above.

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

The -p flag in mkdir creates parent directories as needed, allowing recursive directory creation. Option iv (mkdir x x/y x/y/z) also successfully creates the nested structure sequentially without errors, making both iii and iv correct.