Online Linux Terminal Logo
OnlineLinuxTerminal
← All CommandsFile Operations

$mkdir

Create new directories if they do not already exist.

Sponsored AdvertisementAdSense Slot (banner)
Command Syntax
mkdir [OPTIONS] DIRECTORY...

Try `mkdir` Live in Terminal

bash — terminal

Overview & Usage Details

mkdir creates one or more new directory folders in the Virtual File System.

Command Options & Flags

Option / FlagDescription
-pCreate parent directories as needed without throwing error if existing.
Sponsored AdvertisementAdSense Slot (leaderboard)