На работе:
$ find ~ -type f -print0 | xargs -0 file -i -b | sort |uniq -c |sort -nr| head 41880 text/plain; charset=us-ascii 23507 text/xml 12471 image/png 8990 text/x-c++; charset=us-ascii 8576 text/x-c; charset=us-ascii 3743 text/html 3064 image/gif 2025 application/octet-stream 1975 application/x-zip 1965 application/java