$
Learn Linux handbook
en
XP:0
Quest 4Builder
+150 XP

Creating Directories

Launch Interactive Terminal for This Quest→No installation required • Runs fully in browser

Concept & Overview

Imagine your desk is piled high with loose papers, and you need physical folders to keep things tidy. In Linux, we organize files by creating folders (directories) using the mkdir (make directory) command.

Running mkdir code creates a brand-new folder named "code" right where you are. You can create folders anywhere in the filesystem by giving mkdir a relative or absolute path.

Let's build a workspace. Go back to your home directory by running cd ~ (or cd /home/learner), then create a new folder named projects inside it.

Command Syntax Reference

Command / SyntaxDescription
cd ~Go back to home directory
mkdir projectsCreate projects folder

Verification Objectives

These conditions will be automatically verified when you run commands inside the interactive terminal simulator:

  • ○
    Be in your home folder (/home/learner)
  • ○
    Use the "mkdir" command
  • ○
    Create a directory named "projects"

Ready to complete Quest 4?

Test your skills live in the browser terminal with an emulated Linux filesystem, real-time command evaluation, and instant step-by-step hints.