Practical: Directory Ops
Real-world scenario: Setting up a project structure.
Start Interactive LessonKnowing 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.
Step 2: Create Subdirectories
Now, creating the subfolders. We can do this one by one, or all at once.
Tip: You can create multiple directories in a single
mdcommand by separating names with spaces.
Step 3: Verify the Structure
Always check your work.
Knowledge Check
1 / 2How do you create multiple directories at once?
References
These documentation links provide authoritative details for the commands used in this article.
Up Next
Master folder deletion and file attribute modification for better system housekeeping.