0
0
Linux CLIscripting~10 mins

mkdir (create directories) in Linux CLI - Mini Project: Build & Apply

Choose your learning style9 modes available
Create Project Directories Using mkdir
šŸ“– Scenario: You are organizing files for a new website project. You need to create folders to keep your work neat and easy to find.
šŸŽÆ Goal: Create three directories named html, css, and js inside a main folder called website.
šŸ“‹ What You'll Learn
Create a main directory called website
Inside website, create three directories: html, css, and js
Use the mkdir command
Use a single command to create all directories inside website
šŸ’” Why This Matters
šŸŒ Real World
Organizing project files into folders helps keep work neat and easy to find, just like organizing papers in folders at home or work.
šŸ’¼ Career
Knowing how to create and manage directories is a basic skill for developers, system administrators, and anyone working with computers.
Progress0 / 4 steps
1
Create the main directory
Use the mkdir command to create a directory called website.
Linux CLI
Need a hint?

Think of mkdir as making a new folder. You want to make one called website.

2
Create subdirectories inside website
Use the mkdir command with the -p option to create three directories named html, css, and js inside the website directory in one command.
Linux CLI
Need a hint?

The -p option lets you create parent directories if needed. You can list multiple directories separated by spaces.

3
Verify the directory structure
Use the tree command to display the directory structure of website and check that html, css, and js directories exist inside it.
Linux CLI
Need a hint?

The tree command shows folders and files in a tree shape. It helps you see if your folders are created correctly.

4
Display the directory structure output
Run the script and display the output of the tree website command to show the folder structure.
Linux CLI
Need a hint?

The output should show website with three folders inside: css, html, and js.