•Arnošt Havelka
Practical: Directory Ops
Real-world scenario: Setting up a project structure.
Start Interactive LessonPractical: 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
mdcommand by separating names with spaces.
Step 3: Verify the Structure
Always check your work.
Command Prompt
C:\Users\User>tree
Knowledge Check
1 / 2How do you create multiple directories at once?