[pappy@chmodx]:$ man mkdir

$ mkdir

Create directories

DOCUMENTEDFiles & directoriesUbuntu 24.04 LTS baseline

Synopsis

mkdir [OPTION]... DIRECTORY...

What it does

Examples

Create a directory
mkdir projects
Create nested directories
mkdir -p projects/linux/commands

Important details

These examples are intentionally conservative. Command behavior can still depend on filesystem state, permissions, locale, shell, installed package version, and other system configuration. For exact option semantics, the linked authoritative documentation is the source of truth.