Mailinglist Archive: opensuse (2459 mails)

< Previous Next >
Re: [opensuse] /bin/rm: Argument list too long
  • From: Per Jessen <per@xxxxxxxxxxxx>
  • Date: Wed, 26 Mar 2008 21:08:17 +0100
  • Message-id: <fseafh$ehk$2@xxxxxxxxxxxxxxxx>
Istvan Gabor wrote:


I've just realized that my .thumbnails folder occupies 3.3 Gbyte
space. I wanted to empty it by:
rm .thumbnails/large/*

but got the error message:
bash: /bin/rm: Argument list too long

The file number in the folder is ~ 60 000.

Why rm is not working?
Is this a bug?

How can I delete these files w/o removing the folder itself?

ls -1 .thumbnails/large/* | while read f; do rm $f; done

/Per Jessen, Zürich

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >