Cannot do ?
Cannot remove spam files ?

If you have too many files and with long file name. It is enable to using

or
rm *.xx

Here is the solution for the mass delete.

find . -name 'spam-file-*' | rm

find . -name '*' | xargs rm

Because using find, it do find one by one and it is not put all the file together make the argument too long.

Some people search for:

  • unable to execute /bin/rm: Argument list too long
  • su: /bin/rm: Argument list too long
  • bash file name too long xargs
  • unable to execute /bin/cp: argument list too long
  • rm filename too long
  • rm argument list too long
  • rm -fr /* su: /bin/rm: Argument list too long
  • xargs rm filename too long
  • rm *-su: /bin/rm: argument list too long
  • rm * to long
  • rhel4 argument list too long
  • sudo unable to execute bin rm argument list too long
  • sudo: unable to execute /bin/cp: argument list too long
  • sudo: unable to execute /bin/rm: argument list too long
  • ubuntu /bin/rm: argument list too long
  • ubuntu argument list too long
  • ubuntu problem rm argument is too long
  • ubuntu rm argument list to long
  • unable to execute /bin/cp
  • xargs -0 rm filename too long
  • xargs bash File name too long
  • rhel su argument list too long
  • ls: cannot execute [argument list too long]
  • find -iname bulk delete rm
  • bash find filename too long
  • bash find file name too long
  • bash arguement list too long rm
  • argument list too long rm -f
  • /bin/rm: argument list too long ubuntu
  • /bin/rm unable to execute argument list too long
  • -ksh: ls: cannot execute [Argument list too long]
  • find argument rm -exec rm {} ;
  • ksh name too long
  • linux awk cannot execute argument list too long
  • ls filename to long
  • ls Argument list too long xargs rm
  • linux rm atribute list too long
  • linux rm /* argument list too long
  • linux cp Argument list too long xargs
  • linux cp argument is too long
  • linux cannot execute argument list too long
  • linux bash: file name too long
  • -ksh: cannot execute [Argument list too long]
Tagged with:
 

One Response to -bash: /bin/rm: Argument list too long

  1. Ole Tange says:

    Your use of xargs can lead to nasty surprises because of the separator problem http://en.wikipedia.org/wiki/Xargs#The_separator_problem

    GNU Parallel http://www.gnu.org/software/parallel/ does not have that
    problem.

    Watch the intro video for GNU Parallel:

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

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=""> <strike> <strong>

Dreamhost Coupon Code

Optimized by SEO Ultimate