LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-10-2007, 03:40 AM   #1
ogfizzle
LQ Newbie
 
Registered: Jul 2007
Location: Kenya Nakuru
Distribution: Ubuntu 6.06 LTS + Knoppix 5
Posts: 22

Rep: Reputation: 15
Mass Transfer Of Files


someone pliz show me how to copy many files from the command line without copying the folder.
 
Old 08-10-2007, 03:51 AM   #2
fatra2
Member
 
Registered: Feb 2004
Location: Switzerland
Distribution: Fedora - RedHat - Mandrake - OpenSuse
Posts: 216

Rep: Reputation: 35
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
 
  


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
After a piece of software/a bash script to mass-move files [Fedora Core 6] Alux Linux - Desktop 3 11-23-2006 03:33 PM
a question about renaming files in mass! zeltak Linux - Software 1 05-24-2006 07:12 AM
BASH USAGE: mass files rename sirpelidor Linux - General 8 09-20-2005 01:36 AM
Mass chmod'ing files with spaces in filenames phil.d.g Linux - General 1 06-19-2005 10:51 AM
Transfer and mass storage usb driver spec6635 Slackware 4 01-05-2005 06:59 AM


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

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