Monday, June 27, 2011

Linux - rm - Argument list too long - Solution

When deleting too many files in one directory using rm the following error can appear: "rm: Argument list too long".

Problem:
$ rm *
bash: /bin/rm: Argument list too long

Solution:
$ find ./ -name "*file_name_part*" -delete

No comments: