8xvqvq
Last Updated: February 25, 2016
·
1.061K
· negativo

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

12990

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 ·
12998

that's right ;) thank you for the feedback

over 1 year ago ·
15214

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 ·
15917

Sure, the ifree number will be refreshed :)

over 1 year ago ·