Find where inodes are used

2018-04-25 - How to locate what is taking all the inodes in the subdirectory of a given device
Tags: linux toolbox unix

The command

find . -xdev -printf '%h\n' | sort | uniq -c | sort -k 1 -n