Create one or more directories, including parents.
Section: Files and Directories
Create nested directories
bash
bash
mkdir -p app/logs/archiveExplanation
`-p` prevents errors if parent directories are missing.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Files and Directories