I know of fat32 being of 65.000 files per dir, what about linux/debian?
ext4?
I know of fat32 being of 65.000 files per dir, what about linux/debian?
ext4?
It depends on your filesystem. Ext3 has the following limits:
Other filesystems will have different limits, some will limit files inside a dir while others don't. Refer to your filesystem documentation for more info.
You can see some Ext4 limits on this question.
On ext4:
Well, why don't you test your machine?
#!/bin/bash
i=1
mkdir testdir || exit 1
cd testdir || exit 1
while true
do
[ $(($i % 1000)) -eq 0 ] && echo "creating file $i"
touch file.$i || { echo "failed to create file.$i"; exit 1; }
((i++))
done
Please, please don't run that on a production server. The system could become very sluggish as it creates massive numbers of files.
Also note that deleting a directory full of many, many thousands of files could also take a very long time (like hours).