Saturday, June 28, 2008

-bash: /bin/rm: Argument list too long

f you are facing trouble and getting the following error message while removing the files in bulk using the "rm" command,

Error :
====
root@pluto [/tmp]# rm -rf *
-bash: /bin/rm: Argument list too long
====

then you can use the following "find | rm" command combination as given below in order get done this task :

find . -name '' | xargs rm

= Any matching file pattern that you want remove/delete.

No comments: