-6

I have 7000 files I would like to copy to a folder from home/Videos to /usr/share/someplace. How do I do this?

marked as duplicate by Parto, karel, Eric Carvalho, Fabby, muru Mar 11 '15 at 3:28

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • sudo cp -R ~/Videos/* /usr/share/someplace/ – Sylvain Pineau Mar 9 '15 at 19:44
  • -1. This is a duplicate of so many questions. – Parto Mar 9 '15 at 19:47
  • @Parto copy uses the cp command and move uses mv furthermore, mv does not require -R whereas cp does. – mchid Mar 9 '15 at 19:49
  • @mchid Okay. How about --> askubuntu.com/questions/195983/… – Parto Mar 9 '15 at 19:52
  • @Parto still, that only shows how to copy a single file and not how to use a wildcard like * to copy all files in a given directory like the op wants to do here. – mchid Mar 9 '15 at 19:53
0

If you want to copy all the files in the Videos folder to /usr/share/someplace, run this command:

sudo cp -R ~/Videos/* /usr/share/someplace

Keep in mind that /usr/share/someplace must exist so if you need to create that file before you start, run this command first:

sudo mkdir /usr/share/someplace

If you want to move all those files, you can use the mv command instead of cp.

0

You can also use -v option so u can see all the files that are copying.As

cp -rv ~/Videos/* /usr/share/someplace

OR 

You can tar the files and copy them as:

tar -cvzf /usr/share/someplace/allfiles.tar.gz ~/Videos/* ....

Not the answer you're looking for? Browse other questions tagged or ask your own question.