LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   copying files (https://www.linuxquestions.org/questions/linux-newbie-8/copying-files-119277/)

neozero62 11-23-2003 05:23 PM

copying files
 
I am trying to copy files from a CD to /var/www/html on a RedHat9 Box. I typed /mount cdrom and went to the /mnt/cdrom folder and I see all the files on the cd. I type the command cp /mnt/cdrom /var/www/html and it says "ommiting directory /mnt/cdrom" I tryed it from diffrent directorys with same message. Why it do that?:Pengy:

david_ross 11-23-2003 05:38 PM

if you wnat ot copy directories "recursively" then you need a -r switch:
cp -r /path/to/source /path/to/destination


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