LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-29-2013, 06:04 PM   #1
Tauatioti
LQ Newbie
 
Registered: Oct 2013
Posts: 18

Rep: Reputation: Disabled
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
 
Old 11-29-2013, 06:07 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 3,876
Blog Entries: 1

Rep: Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998
Quote:
Originally Posted by Tauatioti View Post
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
 
1 members found this post helpful.
Old 11-29-2013, 06:26 PM   #3
Tauatioti
LQ Newbie
 
Registered: Oct 2013
Posts: 18

Original Poster
Rep: Reputation: Disabled
Thank you very much astrogeek

You the man.....its work 100%
 
Old 11-29-2013, 06:36 PM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 3,876
Blog Entries: 1

Rep: Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998
You are welcome!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How-to: Modify many files in a directory with a single command tramni1980 Slackware 7 04-24-2012 01:58 AM
copy multiple directories into another one directory with single cp command zeusys Linux - Newbie 2 08-17-2011 11:23 PM
[SOLVED] How to copy a file to all subfolders in a directory using a single command? SirTristan Linux - Newbie 7 07-19-2010 12:19 AM
Is there a way to make a new directory and then cd into with single command ? mynameisthomas Linux - Newbie 4 09-13-2009 02:29 PM
MySQL - command - create user/single database dmedici Linux - Software 3 06-21-2004 04:17 PM


All times are GMT -5. The time now is 10:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration