Skip to content
zero2vibecodelearn vibe coding

What mkdir -p does

mkdir -p project/src: Create nested folders in one go.

The mkdir command page covers what it does in general, with an example.

mkdir-pproject/src
  • mkdir— command — create a folder
  • -p— flag — create nested folders
  • project/src— argument: a file, a folder, or text

What it does when you run it

$ mkdir -p project/src
$ ls project
src

Run it yourself

The same files. Nothing here can break, and nothing leaves your browser.

Explain other commands

Written by Mikhail Kuzmitskii