Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 12 Nov 2002 11:00:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 12 Nov 2002 11:00:05 -0500 Received: from zcars04f.nortelnetworks.com ([47.129.242.57]:45518 "EHLO zcars04f.nortelnetworks.com") by vger.kernel.org with ESMTP id ; Tue, 12 Nov 2002 11:00:03 -0500 Message-ID: <3DD12714.30300@nortelnetworks.com> Date: Tue, 12 Nov 2002 11:06:44 -0500 X-Sybari-Space: 00000000 00000000 00000000 From: Chris Friesen User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204 X-Accept-Language: en-us MIME-Version: 1.0 To: Adam Voigt Cc: linux-kernel@vger.kernel.org Subject: Re: File Limit in Kernel? References: <1037115535.1439.5.camel@beowulf.cryptocomm.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1061 Lines: 36 Adam Voigt wrote: > I have a directory with 39,000 files in it, and I'm trying to use the cp > command to copy them into another directory, and neither the cp or the > mv command will work, they both same "argument list too long" when I > use: > > cp -f * /usr/local/www/images > > or > > mv -f * /usr/local/www/images > > Is this a kernel limitation? It's not a kernel limitiation, its a shell limitation. "*" expands to the list of 39000 names, which is too large. You could try something like: ls .|xargs cp -f --target-directory=/usr/local/www/images Chris -- Chris Friesen | MailStop: 043/33/F10 Nortel Networks | work: (613) 765-0557 3500 Carling Avenue | fax: (613) 765-2986 Nepean, ON K2H 8E9 Canada | email: cfriesen@nortelnetworks.com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/