Re:A faster way to delete millions of files in a directory
by mook on Saturday June 01, 2013 @02:29AM
(#5803005)
I don't think tmpfs is involved at all; it's just moving things out of the way instead of deleting, first. The actual delete runs in the background, so you can get an interactive shell back and keep working while the delete happens without blocking you. I usually do an approximate equivalent of just renaming the directory itself and making a new one in its place (and removing the renamed one in the background).
[ Parent
| on HN ]
There are no comments on this comment yet.