Bird
0
0

Which of the following is the correct syntax to create a directory named projects?

easy📝 Syntax Q12 of 15
Linux CLI - File and Directory Operations
Which of the following is the correct syntax to create a directory named projects?
Amkdir: projects
Bmkdir -d projects
Cmkdir projects
Dmkdir > projects
Step-by-Step Solution
Solution:
  1. Step 1: Recall mkdir syntax

    The basic syntax to create a directory is mkdir directory_name. No extra symbols or options are needed for a simple directory.
  2. Step 2: Evaluate options

    mkdir -d projects uses a non-existent -d flag, mkdir: projects uses invalid colon syntax, and mkdir > projects uses redirection which is incorrect here.
  3. Final Answer:

    mkdir projects -> Option C
  4. Quick Check:

    Simple mkdir = mkdir directory_name [OK]
Quick Trick: Use just mkdir plus folder name to create one folder [OK]
Common Mistakes:
MISTAKES
  • Adding unnecessary flags like -d
  • Using colons or symbols incorrectly
  • Trying to redirect output with >

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes