Argument list too long - help

Nils Kassube kassube at gmx.net
Wed Jun 10 19:09:15 UTC 2009


Carl Friis-Hansen wrote:
> I just discovered that ZoneManager has stored some 87000 png files in
> a directory.  I have no use of them and wanted to remove them. That
> turned out not to be so strait forward:
>
> carl at cjfh3:~$ rm Webcam_Pictures/*.png
> bash: /bin/rm: Argument list too long
> carl at cjfh3:~$
>
> How do I best come around this issue?

If the other suggestions you got already don't work try this:

find Webcam_Pictures -maxdepth 2 -type f -name \*.png -delete


Nils





More information about the ubuntu-users mailing list