Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maximum number of inodes in a directory? [closed]

Is there a maximum number of inodes in a single directory?

I have a directory of over 2 million files and can't get the ls command to work against that directory. So now I'm wondering if I've exceeded a limit on inodes in Linux. Is there a limit before a 2^64 numerical limit?

like image 649
Mark Witczak Avatar asked Sep 02 '08 19:09

Mark Witczak


People also ask

How many inodes are in a directory?

There is one inode per directory, and one for each file in it. If you symlink a file, the symlink gets it's own unique inode as well.

How many inodes are in a file?

There is one inode per file system object. An inode doesn't store the file contents or the name: it simply points to a specific file or directory.


1 Answers

df -i should tell you the number of inodes used and free on the file system.

like image 151
tonylo Avatar answered Oct 13 '22 04:10

tonylo