[CentOS] Re: ls and rm: "argument list too long"

Fri Oct 17 11:09:52 UTC 2008
Jeremy Sanders <jeremy at jeremysanders.net>

Jussi Hirvi wrote:

> Lawrence Guirre (lawrence.guirre at gmail.com)
> kirjoitteli (17.10.2008 12:55):
>> piping ls to xargs should do the trick. man xargs for details.
> 
> Ok, thanks for ideas, Laurent and Lawrence.
> 
> A strange limitation in ls and rm, though. My friend said he hasn't seen
> that in Fedora.

This limitation has been removed from more recent kernels.

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b6a2fea39318e43fee84fa7b0b90d68bed92d2ba

http://www.gnu.org/software/coreutils/faq/#Argument-list-too-long

Jeremy