Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 844 Bytes

mkdir.md

File metadata and controls

35 lines (27 loc) · 844 Bytes
title description created updated
mkdir Linux Command
mkdir Linux Command is used to create new directory. Along with Linux systems mkdir is also available in most of the popular operating systems.
2019-09-13
2023-10-20

mkdir Linux Command is used to create new directory. Along with Linux systems mkdir is also available in most of the popular operating systems.

Syntax

mkdir [name-of-directory(s)]

Option

Option Description
-m Set file mode (as in chmod), not a=rwx - umask
-p Make parent directories as needed
-v Verbose - Print a message for each created directory

Example

mkdir d1 # creates directory with name d1
mkdir d2 d3 d4 # creates directories d2, d3 and d4
mkdir d1/d2/d3 # creates folder d1, then d2 inside d1 and then finally d3 inside d2