[ale] Inode count in directory

Doug McNash dmcnash at charter.net
Fri Feb 12 18:14:17 EST 2010


df -i /your_dir gives the inode usage for a mount

find /your_dir/ | wc (then add one) for counts below /your_dir/


--

doug mcnash

---- Brandon Checketts <brandon at brandonchecketts.com> wrote: 
> I have an OpenVZ instance that claims to be out of inodes.  I could just
> increase the limit, but I'd like to see where all of them are being
> used.  Does anybody know how to count the number of inodes in a
> directory, similar to 'du -sm *' ??  I suppose some combination of 'ls
> -i' and 'wc' might work, but my brain has about stopped working for the
> week, and I'm thinking that there must be an easier way
> 
> Thanks,
> Brandon Checketts
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo



More information about the Ale mailing list