[plug] What is the maximum file size allowed under Unix
Carl Gherardi
gherardi at cs.curtin.edu.au
Wed Aug 1 18:57:17 WST 2001
On Wed, 1 Aug 2001 psteege at tpg.com.au wrote:
> Is there an upper limit (maximum size) that a single file in a Unix
> directory can be, or is the size of the disk drive the limit?
> Also what is the maximum number of files that one directory can hold?
>
> Regards
> Phil
It depends.
Maximun file size is determined by the default block size.
If using: ls -sal : your directory size is 4096 then your maximum file
size is 2G.
I dont know about a maximum number of files for a directory, but i do
remember an article a while back talking about the accidental creation of
65536 files in a directory bringing the system to a crawl. (Article was
discussing the advantages of journaling file systems)
Carl
More information about the plug
mailing list