13
1
I have a million images that takes up 30GB of disk space that need to be moved from one local directory to another local directory.
What would be the most efficient way to do this? Using mv
? Using cp
? Using rsync
? Something else?
I need to take these:
/path/to/old-img-dir/*
00000000.jpg
--------.jpg ## nearly 1M of them! ##
ZZZZZZZZ.jpg
and move them here:
/path/to/new/img/dir/
5I don't think you can beat
mv
, performance-wise, if both the source and target directories reside in the same filesystem. – Frédéric Hamidi – 2012-10-16T06:57:50.917