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/
mv
, performance-wise, if both the source and target directories reside in the same filesystem.