Easy Tutorial
❮ Linux User Manage Linux Comm Ifconfig ❯

Linux mkdir Command

Linux Command Manual

The Linux mkdir (short for "make directory") command is used to create directories.

Syntax

mkdir [-p] dirName

Parameter Description:

Examples

Create a subdirectory named "tutorialpro" under the working directory:

mkdir tutorialpro

Create a subdirectory named "test" under the "tutorialpro2" directory in the working directory.

If the "tutorialpro2" directory does not exist, create it. (Note: In this example, if the -p parameter is not added and the "tutorialpro2" directory does not exist, an error will occur.)

mkdir -p tutorialpro2/test

Linux Command Manual

❮ Linux User Manage Linux Comm Ifconfig ❯