From owner-freebsd-questions@FreeBSD.ORG Thu Jul 23 02:59:12 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04D5B106566B for ; Thu, 23 Jul 2009 02:59:12 +0000 (UTC) (envelope-from jzottl@radiantnetworks.net) Received: from mail-yx0-f181.google.com (mail-yx0-f181.google.com [209.85.210.181]) by mx1.freebsd.org (Postfix) with ESMTP id BEBD48FC08 for ; Thu, 23 Jul 2009 02:59:11 +0000 (UTC) (envelope-from jzottl@radiantnetworks.net) Received: by yxe11 with SMTP id 11so1120110yxe.3 for ; Wed, 22 Jul 2009 19:59:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.36.138 with SMTP id t10mr581273ibd.44.1248316382733; Wed, 22 Jul 2009 19:33:02 -0700 (PDT) In-Reply-To: References: Date: Wed, 22 Jul 2009 22:33:02 -0400 Message-ID: <18b1f5d40907221933j1170bf9fm903dfc60fa2b26a3@mail.gmail.com> From: Julian Zottl Cc: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: limit to number of files seen by ls? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jul 2009 02:59:12 -0000 How are you using ls? I presume something along the lines of "ls -la | more". What does "sysctl fs.file-ma" and "sysctl kern.maxfiles" tell you? I've seen directories with 10000+ files. The only problem I've ever had with that many is using the rm command. In that case, you will need to use something like find ./ -type f -exec rm {}\; Take care, ---- Julian On Wed, Jul 22, 2009 at 8:01 PM, John Almberg wrote: > I seem to have run into an odd problem... > > A client has a directory with a big-ish number of jpgs... maybe 4000. > Problem is, I can only see 2329 of them with ls, and I'm running into other > problems, I think. > > Question: Is there some limit to the number of files that a directory can > contain? Or rather, is there some number where things like ls start working > incorrectly? > > -- John > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >