Very large directory

Peter Jeremy PeterJeremy at optushome.com.au
Thu Jan 20 22:14:27 PST 2005


On Thu, 2005-Jan-20 13:36:30 -0800, Darryl Okahata wrote:
>     Since the original poster was willing to use -rf, wouldn't it be
>better to do:
>
>cd /var/spool/directory ; find . -type f -print0 | xargs -0 rm -f

The original poster mentioned that "find" wouldn't work: find(1) uses
fts(3) which reads the entire directory into memory.

-- 
Peter Jeremy


More information about the freebsd-stable mailing list