Linux command 04
mkdir
Make a new folder from the terminal.
Syntax
Command
mkdir <new-directory-name>
Example
Example command
mkdir practice
Run mkdir followed by the name you want to give the new directory in your current location.
Why it matters
Creating directories from the terminal is part of real technical work. It helps you organize logs, scripts, experiments, and project files without leaving the command line.
Expected output
You may see no output if the command succeeds.
What you may see
No terminal output is expected.
Use ls to confirm that the new directory now appears in the current location.
Common mistake
Mistake: Trying to create a directory with a name that already exists.
Correction: If the name is already in use, Linux returns an error. Choose a new name or inspect the existing folder first with ls.
Practice
- Run mkdir test-folder in a safe practice location.
- Use ls to confirm the folder appears.
- Move into it with cd to connect this command with the earlier tasks.
Video
Quick walkthrough
This will become a short create-and-confirm demo. For now, create one folder and verify it with ls.
Previous / Next
Continue to next command
You have reached the end of this V1 Linux set. Revisit any command whenever you want a quick reset.