Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 853 Bytes

mkdir.md

File metadata and controls

35 lines (28 loc) · 853 Bytes

MKDIR

Command to make a directory.

# create a directory called 'nomeDaPasta' in current path
mkdir nomeDaPasta
# create two or more directorys, just give space between arguments.
# in this case, we are create two directory, 'name1' and 'name2', both in the current path.
mkdir name1 name2
# create a directory called 'test' on path '/Users/darlanmendonca/Desktop'
mkdir /Users/darlanmendonca/Desktop/test
# -p is an flag(option), to create directories (in this case, directory 'parent'), case their not exists
mkdir -p /Users/darlanmendonca/Desktop/test/parent/children
# if you need spaces into directory name, use "\ "(slash-space)
# create a directory named "directory with spaces"
mkdir directory\ with\ spaces
# or just use single or double quotes
mkdir 'name with space'