Linux-specific flags

List top 10 directories with most files (inodes) in the root filesystem.

du --inodes -xS / | sort -nr | head
 
# Less efficient version:
find / -xdev -printf '%h\n' | sort | uniq -c | sort -k1 -n