Naming a new directory?


#1


https://www.codecademy.com/courses/learn-the-command-line/lessons/navigation/exercises/cd-ii

how do i make a new directory which has a name having multiple words for eg "Important Files".


#2

you put it in quotation marks
mkdir "Important Files"


#3

@joelmani

mkdir Important\ Files works too, but the quotation marks are even easier to use


#4

The above answers are correct but I just gotta Kanye here and say, at least in development, its best to avoid spaces in file and directory names. Underscores or hyphens work well just try to be consistent.

Important_Files, node-modules, Kanye_Knows_Best, etc..


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.