Unix commands - mkdir

/ #Bash


In this short post, I'll explain how and what you can do with the unix command "mkdir"

Explanation

"mkdir" is short for "make directory". You use this command to create folders.

Examples

# Basic example
mkdir foldername

# This will create a folder called "foldername".
# Create a folder path
mkdir -p foldername/subfolder/subsubfolder

# This will create a folder called "foldername", with a folder called "subfolder" inside, with a folder called "subsubfolder" in.
# -p stands for path

Comments

No comments yet...

Add comment

Info

Please log in to comment!

Newsletter

Subscribe to my weekly newsletter. One time per week I will send you a short summary of the tutorials I have posted in the past week.