LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Moving or copying a directory into multiple directories (https://www.linuxquestions.org/questions/linux-newbie-8/moving-or-copying-a-directory-into-multiple-directories-422226/)

oadvantage 03-06-2006 02:44 PM

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

reddazz 03-06-2006 02:55 PM

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/

oadvantage 03-06-2006 03:41 PM

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.

reddazz 03-07-2006 03:47 AM

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.


All times are GMT -5. The time now is 05:30 AM.