Quick way to for each directory in current folder to show its name, then # of inodes under i


Quick way to for each directory in current folder to show its name, then # of inodes under it:

 

find -type d -maxdepth 1 -exec sh -c “echo {}; ls -Ria {} | sed -e ‘s/^ *//’ -e ‘s/ .*//’ -e ‘/^$/d’ -e ‘/^\./d’ | sort -u | wc -l; ” \;

 

For example, use it to how many inodes you consumed at godaddy hosting.  Given inode restriction, unlimited storage is not really unlimited storage.