bash: /bin/rm: Argument list too long

Nov 13
0

bash: /bin/rm: Argument list too long

Mon, 2006-11-13 16:40 — superuser

When trying to clean out some LARGE cache directories I recieved the following error:

[technotes@zebra cache]# rm *
-bash: /bin/rm: Argument list too long

The quick fix to this was:

find . -name * | xargs rm

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo].

More information about formatting options