limit to number of files seen by ls?

Julian Zottl jzottl at
Thu Jul 23 02:59:12 UTC 2009

How are you using ls?  I presume something along the lines of "ls -la |

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,


On Wed, Jul 22, 2009 at 8:01 PM, John Almberg <jalmberg at> 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 at mailing list
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe at"

More information about the freebsd-questions mailing list