[Ilugc] Limit on Sub-folders / Files in Linux

  • From: mail2krish@xxxxxxxxx (Krishna P)
  • Date: Fri Mar 28 21:20:37 2008

On Fri, Mar 28, 2008 at 11:40 AM, senthilraja P <technocraze@xxxxxxxxx>
wrote:

Hi,

I heard that the number of sub-folders / files in a linux directory should
not exceed 32,000 . There is not enough material available in the net.


Yes, you are right, it is not allowing to create more than 32000 subfolders.
This is what I tried
-bash-2.05b#  for ((  i = 0 ;  i <= 32001;  i++  )); do mkdir test$i; done
at the end around 3199x count i got the message,
"cannot create directory `last': Too many links"

I used http://linuxzoo.net/  Fedora image as my test machine,

Bye,
Krishna.

Other related posts: