Basic CommandsLesson 14Free preview
Bash Make Dir (mkdir)
This lesson is part of Bash · All levels
Summary
The MKdir command creates a new directory at the location you specify. Without the option, the parent folder should already be available, whereas -p creates an entire chain of directories that doesn't exist. You can also create multiple folders at once by splitting them apart.
Key points
- Mkdir name makes a directory
- p create a layered directory at once
- Mkdir a b c makes three folders at once
- The parent folder should be there if it doesn't use the -p
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.