[ale] best solution for removing large # of files on NFS share.

Geoffrey Myers lists at serioustechnology.com
Wed Jun 29 11:18:24 EDT 2022


Looking for some advice for the best way to delete a large number of files spread across a large number of directories on an NFS share.  RHEL7

There are 6 directories of the form:

dir1/month/day/hour/minute/
.
.
dir6/month/day/hour/minute/


There are only files in the minute’s directories.

which is a more efficient solution?

1.	find dir1 -type f -delete
2.	rm -rf dir1


Regarding #2, the directories will be recreated by the application.

--
Until later, Geof





More information about the Ale mailing list