Linux

mkdir

SafeMake directory

mkdir -p <dir>

Creates directories; -p makes parents as needed.

Examples

  • mkdir -p logs/2026/06Create nested dirs

Syntax

mkdir [-p] <dir>

Before you run it

Creation only.

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store