LinuxQuestions.org
Register a domain and help support LQ
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 03-06-2006, 02:44 PM   #1
oadvantage
LQ Newbie
 
Registered: Mar 2006
Posts: 12

Rep: Reputation: 0
Moving or copying a directory into multiple directories


Hi,

I am just begging to use linux.

I am trying to copy or move a directory into multiple directories.

the directory is CD

the destination directory is doc_roots
(in the directory are multiple directories that need directory CD)

I am lost.

Can someone please help.


Thank you,
William
 
Old 03-06-2006, 02:55 PM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Are you trying to copy a directory that contains subdirectories? If so use cp -r e.g.
Code:
$cp -r /mnt/cdrom/docs/ /var/htdocs/doc_roots/
 
Old 03-06-2006, 03:41 PM   #3
oadvantage
LQ Newbie
 
Registered: Mar 2006
Posts: 12

Original Poster
Rep: Reputation: 0
Hi.

I am trying to copy a directory that contains files in a main directory with sub-directories.

William

the directory I need put into all of the sub directories in doc_roots is rssgm, not CD sorry.

Thank you for your help.

Last edited by oadvantage; 03-06-2006 at 03:43 PM.
 
Old 03-07-2006, 03:47 AM   #4
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
The commands above should work. All you need to do is change the paths so that they match the ones on your system. In the example above docs would be the main directory and doc_roots would be the destination directory.
 
  


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
Copy files from multiple directories into one directory MadRabbit Linux - Newbie 8 02-07-2014 07:56 PM
copying multiple different files in different directories with identical file names nickleus Linux - Software 4 03-09-2006 01:25 PM
Searching multiple directories and sub directories for a file jeep99899 Linux - Newbie 2 10-13-2005 12:23 PM
copying/moving stalls when moving a lot of data to a usb stick =X= Linux - Hardware 10 07-30-2004 05:29 AM
Copying a single file to multiple directories tgolly Linux - Newbie 3 04-26-2004 03:47 PM


All times are GMT -5. The time now is 06:56 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration