LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   copy directories and subdirectories (https://www.linuxquestions.org/questions/linux-newbie-8/copy-directories-and-subdirectories-154402/)

Red Squirrel 03-06-2004 09:09 PM

copy directories and subdirectories
 
What is the equivalent of xcopy in linux? I can't seem to find it. I have a mysql install folder and suposedly, from what it says, I can just copy it over to /usr/local and it will work, but right now it's under a different folder. I can always make an entire system samba share but I rather not take that security risk. (in case my parants open a virus or something, they're bad for that)

mjrich 03-06-2004 09:14 PM

Try the recursive option of cp:

cp -r currentdirectory newirectory

Cheers, M.

Red Squirrel 03-06-2004 09:18 PM

Cool thanks! It worked.


All times are GMT -5. The time now is 02:08 AM.