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?
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.
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.
df -i
should tell you the number of inodes used and free on the file system.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With