Is there a limit on the number of files in UNIX in the filesystem?
migrated from stackoverflow.com Jan 16 '11 at 4:23
It depends on the type of file system. If you're using ext4 with default parameters, then you can have a maximum of:
Some of these are configurable and are obviously limited by actual storage space on your medium. Best to read the documentation for your filesystem type.
If you're talking about the number of file handles a process can have open at once then it depends on your system.
Note: numbers were taken from the ext4 wikipedia page.
This depends on file system and container you are reffering to - in a directory, in a volume. Please refer to this link for details on EXT3 filesystem.
The maximum number of inodes (and hence the maximum number of files and directories) is set when the file system is created. If V is the volume size in bytes, then the default number of inodes is given by V/213 (or the number of blocks, whichever is less), and the minimum by V/223. The default was deemed sufficient for most applications. The max number of subdirectories in one directory is fixed to 32000.
Similar parameters are also defined for other filesystems.
If you are concerned with limitations, forget about them by using ZFS.
Quoted from ZFS FAQ: