Skip to main content

Create Nested Directories With mkdir

· One min read
Shafi Rayhan

To create nested directories with mkdir in terminal, you just need to pass the -p flag before your parameter.

Example:

mkdir -p first/second/third