rm complains argument list too long
October 20th, 2007 mysurface
There is a limitation of rm command, where you can’t delete a large groups of files with *. For examples,
rm -rf something*
If there are large amount of files initiate with something, rm will fails and complains
/bin/rm: Argument list too long.
The solution is to make use of find, xargs and rm.
find . -name ’something*’ -print0 | [...]
Posted in Common, find, rm, xargs | Hits: 14062 | 5 Comments »
Live Chat!








