[SunHELP] Inode Tip

Tim Longo sunhelp at sunhelp.org
Sat Jan 20 08:33:52 CST 2001


I know there was a question about Inodes recently, so
I thought the following tip might be useful:

> FULL OF FILESYSTEM INODES
>
> We recently had a problem where a file system had 100% inode usage.
> Unfortunately there isn't an easy way to search for directories with 
> a lot of files in them (1 file = 1 inode). And if the files are small, 
> you can't rely on du to help you out.
>
> Here is a find command that will print all the directories in the 
> current filesystem, with the number of files (inodes) in that directory.
>
> find . -xdev -type d -exec /bin/echo -n {} \; -exec sh -c "ls {} | wc -l" \;
>
> This tip generously supported by: rickb at cmhcsys.com
>



More information about the SunHELP mailing list