Messages in this thread | | | Date | Tue, 12 Nov 2002 11:06:44 -0500 | From | Chris Friesen <> | Subject | Re: File Limit in Kernel? |
| |
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/
| |