LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   create many directory with single command (https://www.linuxquestions.org/questions/linux-newbie-8/create-many-directory-with-single-command-4175486289/)

Tauatioti 11-29-2013 05:04 PM

create many directory with single command
 
Hi everyone

I know how to create directory using mkdir, but my question is how to create a directory that will contain other directory with single command for example Creating directories ‘1’, ‘2’, ‘3’ with single command where directory ‘3’ is inside
directory ‘2’ and directory ‘2’ is inside directory ‘1’.

Anyone could help please

Thanks

Taati

astrogeek 11-29-2013 05:07 PM

Quote:

Originally Posted by Tauatioti (Post 5072633)
Hi everyone

I know how to create directory using mkdir, but my question is how to create a directory that will contain other directory with single command for example Creating directories ‘1’, ‘2’, ‘3’ with single command where directory ‘3’ is inside
directory ‘2’ and directory ‘2’ is inside directory ‘1’.

Anyone could help please

Thanks

Taati

man mkdir

Code:

mkdir -p 1/2/3

Tauatioti 11-29-2013 05:26 PM

Thank you very much astrogeek

You the man.....its work 100%

astrogeek 11-29-2013 05:36 PM

You are welcome!


All times are GMT -5. The time now is 06:34 AM.