mkdir -p a/b/c

Category: File Operations

mkdir -p a/b/c

Create nested directories recursively

Creates a chain of nested directories all at once. Without -p, you'd have to create each folder one by one. -p means 'make parents as needed'.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.