howto cp images, mp3 from multiple directory to one directory (find, exec, cp)

Submitted by rex on Mon, 12/28/2009 - 19:03

If you want to copy your all mp3's and images to one directory. just use the following command:

jpg

find . -type f -name '*.jpg' -exec cp {} /home/username/images/ \;


find . -type f -name '*.jpg' -exec cp {} /home/username/images/ \;

Add new comment

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.