linuxcommandcopy-paste

is there a fastest option to cp files from dir1 to dir2?


i used cp to copy lots of small files (b/n 1M and 10M size; around 6G total) in Linux box. Didn't time it but since i am going to do cp again and again, can time it and be more specific later; but since the cp is not the major task, can't tolerate the time it's taking if there is a better option/choice/way. So, if there is a better way/option/method to do cp-ing (faster) files from one dir to another, be glad glad to try it out.

Thanks,


Solution

  • Either of tar/untar or rsync when told not to checksum will be faster, since they bulk-read files instead of handling them one-by-one.