Unix commands - mkdir

/ #Bash

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


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


# 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


No comments yet...

Add comment


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.