bash: /bin/rm: Argument list too long

[[email protected]]$ rm -rf *
-bash: /bin/rm: Argument list too long

Выход довольно прост, как оказалось :)


[[email protected]]$ find . | xargs rm

Этот код удалит все файлы в текущей папке, независимо от того, сколько их.

One thought on “bash: /bin/rm: Argument list too long

Leave a Reply

Ваш адрес email не будет опубликован. Обязательные поля помечены *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>