Last Updated: September 09, 2019
·
1.31K
· m3tr0z

how many files can a folder contain? *unix

trying to solve this question, all the paths lead to:

df -i {folder}

this command will report the amount of disk space used by the file system,
"-i" will list inode information instead of block usage.

<b>the number of files that you can store in a folder is the value under " ifree "</b>

4 Responses
Add your response

It should be mentioned that if you really store so much files in one directory many linux/unix commands like rsync or a simple ls will be incredible slow :-)

over 1 year ago ·

that's right ;) thank you for the feedback

over 1 year ago ·

I wonder, if you create X files (where X = the ifree number), and remove them ... is the ifree refreshed, or not ?
I mean, isn't it like a counter that resets when it reaches 0 ? ...

Thanks in advance,

over 1 year ago ·

Sure, the ifree number will be refreshed :)

over 1 year ago ·