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>
Written by davide
Related protips
4 Responses
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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#