LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mass Transfer Of Files (https://www.linuxquestions.org/questions/linux-newbie-8/mass-transfer-of-files-576091/)

ogfizzle 08-10-2007 02:40 AM

Mass Transfer Of Files
 
someone pliz show me how to copy many files from the command line without copying the folder.

fatra2 08-10-2007 02:51 AM

Hi there,

I don't know if I get the whole sense of your question. If you want to copy files from a folder to another, you can
Code:

cp -rfv folder_to_copy_from/* folder_to_copy_to/
This command will copy all the files in folder_to_copy_from/ to folder_to_copy_to/. The * sign can be used in many ways, for example if you want to copy all the .pdf files from one folder to the other, you can
Code:

cp -rfv folder_to_copy_from/*.pdf folder_to_copy_to/
The option "r" is for recursive, "f" is to force if an existing destination file cannot be opened, remove it and try again and "v" explain what is being done.

I hope this is what you are looking for. If I you want more details, look into the manpage of copy for further the options, or just post another post with a bit more details.

Cheers


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