[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Anton Channing wrote: > My webhost is complaining that I have > exceeded my inode limit. I never even > realised there was such a limit, and > certainly didn't know what an inode was. It's short for "information node". > > I've looked it up and I now know, but > my problem is locating my inodes. > > In order to reduce my inodes, I must first > find the main culprits. > > I can't seem to find a command that > will tell me how many inodes are > located in each directory (including > those recursively in that directories > sub-directories). A rough figure would be the number of entries, excluding "." & "..". Every file, of whatever type, needs one inode. The "-i" option of ls will display the inode number together with the file name. "ls -aliR <dir> |grep ^[0-9]|awk ' {print $1}'|sort |uniq|wc" will give you an exact count. (Though you might need to modify it to also look at the file owner...) N.B. Whilst a hard link consumes no additional inodes, since it increments the link field on an existing inode, a symbolic link creates a new file. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFImHH4soRLMhsZpFcRAin7AJ9XjNztGDsXxRpBITghKR4QQz9/ZQCZAY6Q FqSpB3Npw8+7/W22G2cZ0rg= =fDqX -----END PGP SIGNATURE----- -- The Mailing List for the Devon & Cornwall LUG http://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html