I have 7000 files I would like to copy to a folder from home/Videos
to /usr/share/someplace
. How do I do this?
Asked
Active
Viewed 2.8k times
-6

Sylvain Pineau
- 62,169
2 Answers
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
.

mchid
- 43,546
- 8
- 97
- 150
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/* ....

muru
- 197,895
- 55
- 485
- 740

khanthegeek
- 574
sudo cp -R ~/Videos/* /usr/share/someplace/
– Sylvain Pineau Mar 09 '15 at 19:44cp
command and move usesmv
furthermore,mv
does not require-R
whereascp
does. – mchid Mar 09 '15 at 19:49*
to copy all files in a given directory like the op wants to do here. – mchid Mar 09 '15 at 19:53