find / -type f |awk '{$NF="";a[$0]++}END{for (i in a) print a[i],i }' FS=\/ OFS=\/ |sort -rn|head -10
linux: find 10 largest folder by files count
Leave a reply
find / -type f |awk '{$NF="";a[$0]++}END{for (i in a) print a[i],i }' FS=\/ OFS=\/ |sort -rn|head -10