Changed the command up a bit since it was including zero byte files and directories:
sudo find / -size +0 -type f -ls | awk '{print $7,$NF}' > /tmp/filesizes 110920 7 111306 5 111312 1 111345 9 111362 3 130138 0 130511 4 131528 8 139000 2 152213 6
cat filesizes | grep "6 " | awk '{print $NF}' | sed 's/\/[^/]*$//' | sort | uniq -c | sort -nr | head 1607 /usr/share/man/man3 906 /home/matt/.cache/mozilla/firefox/8jc2n3qa.default/cache2/entries 825 /usr/bin 808 /home/matt/.tmux/resurrect
Changed the command up a bit since it was including zero byte files and directories:
Some other interesting things (dirname is too slow...): Then again a lot of this is flawed because it's looking at /sys. Too lazy to fix it now :)