0

This question already has an answer here:

I have a lot of .iso files in different directories on my computer and I want to move them all at once to some folder. What I would use for searching those file is find and mv to move it. The obvious way of doing this would be

find / -name "*.iso" | mv --target-directory=/home/ISO/

but it doesn't work. Any ideas?

marked as duplicate by don_crissti, Rui F Ribeiro, Jeff Schaller, msp9011, mosvy Jan 30 at 19:06

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.

0

find / -name "*.iso" -exec mv {} /home/ISO/ \;

  • Wow. That was quick. Thank you, it works. – Razwill Jan 30 at 18:47
0

You can use

find / -name "*.iso" -exec mv -t /home/ISO/ "{}"  +

It will find all files ending with iso, and will move them to directory /home/ISO.

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