mkdir -p
Create nested directories in one command
mkdir -p creates the full path including any missing parent directories. mkdir -p /tmp/app/config/env creates all four levels at once. Always use -p in scripts to avoid errors on re-runs.
Example
$ mkdir -p /tmp/app/config
$ tree /tmp/app
/tmp/app
└── config
Tip: Type it yourself in the terminal below - reading is not the same as doing.