How to get number of files recursively for each folder in directory? du -a | cut -d/ -f2 | sort | uniq -c | sort -nr Sources linux - How to count number of files in each directory? - Stack Overflow Backlinks How do I audit all the archives of data I have?