AI Workshop: learn to build apps with AI →
File Operations: mkdir - Make Directory

Join the AI Workshop and learn to build real-world apps with AI. A hands-on, practical program to level up your skills.


You create folders using the mkdir command:

mkdir fruits

You can create multiple folders with one command:

mkdir dogs cars

You can also create multiple nested folders by adding the -p option:

mkdir -p fruits/apples

Options in UNIX commands commonly take this form. You add them right after the command name, and they change how the command behaves. You can often combine multiple options, too.

You can find which options a command supports by typing man <commandname>. Try now with man mkdir for example (press the q key to exit the man page). Man pages are the amazing built-in help for UNIX.

Lessons in this unit:

0: Introduction
1: ▶︎ mkdir - Make Directory
2: rmdir - Remove Directory
3: touch - Create/Update Files
4: cp - Copy Files
5: mv - Move/Rename Files
6: open - Open Files
7: ln - Create Links
8: chmod - Change File Permissions
9: chown - Change File Owner
10: umask - Set Default Permissions