Removing thousands of files using rm

Len Conrad LConrad at
Tue Jul 6 07:26:28 PDT 2004

>I often have the need to remove hundreds or even thousands of files from a
>single directory (very often). Using rm, I usually get:
>pearl# rm -rvf *
>/bin/rm: Argument list too long.

man xargs


More information about the freebsd-questions mailing list