CMD Master
Back to Blog
Arnošt Havelka

Practical: Directory Ops

Real-world scenario: Setting up a project structure.

Start Interactive Lesson
Practical: Directory Ops

Practical: Directory Operations

Knowing individual commands is great, but combining them is where the real power lies. In this practical lesson, we will simulate setting up a new software project structure using md (make directory), cd (change directory), and verifying it with tree.

The Mission

You are starting a new web project called "MyWebsite". You need to create the following folder structure:

MyWebsite
├───css
├───js
└───images

Step 1: Create the Project Root

First, we create the main folder and enter it.

Command Prompt
C:\Users\User>md MyWebsite && cd MyWebsite

Step 2: Create Subdirectories

Now, creating the subfolders. We can do this one by one, or all at once.

Command Prompt
C:\Users\User>md css js images

Tip: You can create multiple directories in a single md command by separating names with spaces.

Step 3: Verify the Structure

Always check your work.

Command Prompt
C:\Users\User>tree

Knowledge Check

1 / 2

How do you create multiple directories at once?

Up Next

Practical: Attributes

Real-world scenario: Securing and hiding sensitive files.