How to remove a milion files on Linux?
Normally, I used to rm command to remove file on Linux. Today, I must to remove more a milion files, do you use rm command to do this??? The answer for this question to be "NO". After I have Googled and the solution for this issue you try to use "rsync" command. rsync -a --delete /tmp/empty /tmp/session/ Wonderful, I removed more a milion files smoothly.... Which is the fastest? rm: deleting millions of file is a no-can-do! find -exec: an option, but slower! find -delete: fast and easy way to remove loads of files. rsync --delete: without doubt the quickest!