Bird
0
0

Which command will create a directory named photos in the current folder?

easy📝 Conceptual Q2 of 15
Linux CLI - File and Directory Operations
Which command will create a directory named photos in the current folder?
Amkdir photos
Bmkdir -r photos
Cmkdir /photos
Dmkdir --delete photos
Step-by-Step Solution
Solution:
  1. Step 1: Identify the basic mkdir syntax

    The command mkdir photos creates a directory named 'photos' in the current folder.
  2. Step 2: Check other options

    -r and --delete are not valid options for mkdir. Using /photos creates directory at root, not current folder.
  3. Final Answer:

    mkdir photos -> Option A
  4. Quick Check:

    Basic mkdir = mkdir photos [OK]
Quick Trick: Use mkdir followed by folder name to create directory [OK]
Common Mistakes:
  • Using invalid options like -r
  • Adding slash creates directory elsewhere
  • Confusing mkdir with delete commands

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes