Problem deleting files
Yasuhiro KIMURA
yasu at utahime.org
Sun Jul 1 19:49:05 UTC 2018
From: Paul Schmehl <paul.schmehl at gmail.com>
Subject: Problem deleting files
Date: Sun, 01 Jul 2018 14:13:30 -0500
> I have a problem with a directory full of files that I can't seem to
> delete.
>
> rm * returns argument list too long. So does file *
>
> find . -type f -exec rm [] \; returns rm: []: No such file or
> directory over and over again.
Try following command.
find . -type f -print0 | xargs -0 rm -f
If it is only a matter of the number of files, then this should work
well.
Best,
---
Yasuhiro KIMURA
More information about the freebsd-questions
mailing list