Very large directory

Björn König bkoenig at cs.tu-berlin.de
Thu Jan 20 15:48:05 PST 2005


Darryl Okahata wrote:

> find . -type f -print0 | xargs -0 rm -f
> Slightly more typing, but more robust.

The find utility of FreeBSD knows a -delete option, e.g.:

  find /path/to/your/directory -type f -delete

Regards Björn



More information about the freebsd-stable mailing list